fix derp in cat

This commit is contained in:
Kevin Lange 2014-04-01 22:59:29 -07:00
parent 0659d923d7
commit 6d2e151eff

View File

@ -30,7 +30,7 @@ int main(int argc, char ** argv) {
for (int i = 1; i < argc; ++i) {
int fd = open(argv[i], O_RDONLY);
if (!fd) {
if (fd == -1) {
fprintf(stderr, "%s: %s: no such file or directory\n", argv[0], argv[i]);
ret = 1;
continue;