diff options
author | Jim Meyering <jim@meyering.net> | 2005-12-22 14:34:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-12-22 14:34:20 +0000 |
commit | b6c621211bc3e0620affe71acde0c99ad12ce773 (patch) | |
tree | 7204101adf2e094db827969209282ddc6a96432e | |
parent | 1e1938032b142555fba9ba74ca4ada767d99860d (diff) | |
download | coreutils-b6c621211bc3e0620affe71acde0c99ad12ce773.tar.xz |
Include "fcntl--.h" and "unistd--.h", to map open
and dup to open_safer and dup_safer, respectively.
(openat_permissive): Fix typo in comment.
-rw-r--r-- | lib/openat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/openat.c b/lib/openat.c index 20c217d97..69d4c23f9 100644 --- a/lib/openat.c +++ b/lib/openat.c @@ -24,8 +24,10 @@ #include "openat.h" #include "dirname.h" /* solely for definition of IS_ABSOLUTE_FILE_NAME */ +#include "fcntl--.h" #include "openat-priv.h" #include "save-cwd.h" +#include "unistd--.h" #include <stdarg.h> #include <stddef.h> @@ -71,7 +73,7 @@ openat (int fd, char const *file, int flags, ...) If a previous attempt to restore the current working directory failed, then we must not even try to access a `.'-relative name. - It is the caller's responsibility to not to call this function + It is the caller's responsibility not to call this function in that case. */ int |