(recheck, tail_file): Use fd_safer rather than open_safer.
#include "argmatch.h"
#include "c-strtod.h"
#include "error.h"
-#include "fcntl-safer.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"
bool new_file;
int fd = (is_stdin
? STDIN_FILENO
- : open_safer (f->name, O_RDONLY | (blocking ? 0 : O_NONBLOCK)));
+ : fd_safer (open (f->name,
+ O_RDONLY | (blocking ? 0 : O_NONBLOCK))));
assert (valid_file_spec (f));
}
else
{
- fd = open_safer (f->name, O_RDONLY);
+ fd = fd_safer (open (f->name, O_RDONLY));
}
f->tailable = !(reopen_inaccessible_files && fd == -1);