summaryrefslogtreecommitdiff
path: root/lib/openat.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-12-22 14:34:20 +0000
committerJim Meyering <jim@meyering.net>2005-12-22 14:34:20 +0000
commitb6c621211bc3e0620affe71acde0c99ad12ce773 (patch)
tree7204101adf2e094db827969209282ddc6a96432e /lib/openat.c
parent1e1938032b142555fba9ba74ca4ada767d99860d (diff)
downloadcoreutils-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.
Diffstat (limited to 'lib/openat.c')
-rw-r--r--lib/openat.c4
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