Check for read errors.

This commit is contained in:
Tim J. Robbins 2004-07-31 06:22:57 +00:00
parent be5c85a71b
commit 70cd856a0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132918

View File

@ -196,6 +196,8 @@ cont:
continue;
}
}
if (ferror(stdin))
err(1, NULL);
} while (argc > 0);
fflush(stdout);
exit(0);