mirror of
git://git.sv.gnu.org/coreutils
synced 2026-05-20 07:22:09 -04:00
(tail_file): Set errnum to -1 if the initial "tail" failed.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user