(tail_file): Set errnum to -1 if the initial "tail" failed.

This commit is contained in:
Paul Eggert committed 2004-12-04 07:02:35 +00:00
1 parent fcf9cad088
commit cd9d7fd2bd
1 file changed
+1 -1
+1 -1
View File
@@ -1317,7 +1317,7 @@ tail_file (struct File_spec *f, uintmax_t n_units)
call made the window big enough to exercise the problem. */
sleep (1);
#endif
f->errnum = 0;
f->errnum = ok - 1;
if (fstat (fd, &stats) < 0)
{
ok = false;