From: Jim Meyering Date: Thu, 22 Dec 2005 14:34:20 +0000 (+0000) Subject: Include "fcntl--.h" and "unistd--.h", to map open X-Git-Tag: v6.0~1052 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b6c621211bc3e0620affe71acde0c99ad12ce773;p=thirdparty%2Fcoreutils.git Include "fcntl--.h" and "unistd--.h", to map open and dup to open_safer and dup_safer, respectively. (openat_permissive): Fix typo in comment. --- diff --git a/lib/openat.c b/lib/openat.c index 20c217d978..69d4c23f9a 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 #include @@ -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