summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-12-04 07:02:35 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-12-04 07:02:35 +0000
commitcd9d7fd2bdb870dd860a3d7d371cf7482dedf5ac (patch)
tree5fcc293200dc2076806d0c794e162df41dea3159 /src
parentfcf9cad08872f865fa2178744356e6ad0c33972b (diff)
downloadcoreutils-cd9d7fd2bdb870dd860a3d7d371cf7482dedf5ac.tar.xz
(tail_file): Set errnum to -1 if the initial "tail" failed.
Diffstat (limited to 'src')
-rw-r--r--src/tail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tail.c b/src/tail.c
index fba74ecc3..f09fbd617 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -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;