diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-04 07:02:35 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2004-12-04 07:02:35 +0000 |
commit | cd9d7fd2bdb870dd860a3d7d371cf7482dedf5ac (patch) | |
tree | 5fcc293200dc2076806d0c794e162df41dea3159 /src | |
parent | fcf9cad08872f865fa2178744356e6ad0c33972b (diff) | |
download | coreutils-cd9d7fd2bdb870dd860a3d7d371cf7482dedf5ac.tar.xz |
(tail_file): Set errnum to -1 if the initial "tail" failed.
Diffstat (limited to 'src')
-rw-r--r-- | src/tail.c | 2 |
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; |