diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:23:18 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2005-07-03 07:23:18 +0000 |
commit | dd6f2c49dba1ba29e9be80f651ddfbf88a5ea7eb (patch) | |
tree | d8a97b13bf6eebf7d437f0bc6ff6897eb747012f | |
parent | 9509ae9a8ce8f54817bd502b76bd622fe276de90 (diff) | |
download | coreutils-dd6f2c49dba1ba29e9be80f651ddfbf88a5ea7eb.tar.xz |
Include fcntl--.h, not unistd-safer.h.
(touch): Don't call fd_safer; no longer needed now that
we include fcntl--.h.
-rw-r--r-- | src/touch.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/touch.c b/src/touch.c index 46224c8c8..e7008c18a 100644 --- a/src/touch.c +++ b/src/touch.c @@ -26,12 +26,12 @@ #include "system.h" #include "argmatch.h" #include "error.h" +#include "fcntl--.h" #include "getdate.h" #include "posixtm.h" #include "posixver.h" #include "quote.h" #include "safe-read.h" -#include "unistd-safer.h" #include "utimens.h" /* The official name of this program (e.g., no `g' prefix). */ @@ -129,7 +129,6 @@ touch (const char *file) /* Try to open FILE, creating it if necessary. */ fd = open (file, O_WRONLY | O_CREAT | O_NONBLOCK | O_NOCTTY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); - fd = fd_safer (fd); /* Don't save a copy of errno if it's EISDIR, since that would lead touch to give a bogus diagnostic for e.g., `touch /' (assuming |