mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(tail_file): Set errnum to -1 if the initial "tail" failed.
This commit is contained in:
1 parent
fcf9cad088
commit
cd9d7fd2bd
1 file changed
+1
-1
+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