diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:21:49 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:21:49 +0000 |
commit | 4decb490328d211fc0a0a61a57b4658447a034fd (patch) | |
tree | 7a21d4a25b8cd413f5dc2f9eff806ac47087930a /src/tail.c | |
parent | 7b1780d5cc2a64268192551df38d48463ac01451 (diff) | |
download | coreutils-4decb490328d211fc0a0a61a57b4658447a034fd.tar.xz |
Include fcntl--.h, not unistd-safer.h.
(recheck, tail_file): Don't call fd_safer; no longer needed
now that we include fcntl--.h.
Diffstat (limited to 'src/tail.c')
-rw-r--r-- | src/tail.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tail.c b/src/tail.c index 104e9f8a7..f78f6f479 100644 --- a/src/tail.c +++ b/src/tail.c @@ -35,11 +35,11 @@ #include "argmatch.h" #include "c-strtod.h" #include "error.h" +#include "fcntl--.h" #include "inttostr.h" #include "posixver.h" #include "quote.h" #include "safe-read.h" -#include "unistd-safer.h" #include "xnanosleep.h" #include "xstrtol.h" #include "xstrtod.h" @@ -856,8 +856,7 @@ recheck (struct File_spec *f, bool blocking) bool new_file; int fd = (is_stdin ? STDIN_FILENO - : fd_safer (open (f->name, - O_RDONLY | (blocking ? 0 : O_NONBLOCK)))); + : open (f->name, O_RDONLY | (blocking ? 0 : O_NONBLOCK))); assert (valid_file_spec (f)); @@ -1286,9 +1285,7 @@ tail_file (struct File_spec *f, uintmax_t n_units) fd = STDIN_FILENO; } else - { - fd = fd_safer (open (f->name, O_RDONLY)); - } + fd = open (f->name, O_RDONLY); f->tailable = !(reopen_inaccessible_files && fd == -1); |