]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(O_NOFOLLOW): Define, if necessary.
authorJim Meyering <jim@meyering.net>
Fri, 23 Dec 2005 08:28:14 +0000 (08:28 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 23 Dec 2005 08:28:14 +0000 (08:28 +0000)
lib/chdir-safer.c

index e97b2fce6e03e8bd5653cec4944cb2210b243404..e77924fb165d470b7d4c29e28e7d43d9c0b7d8b6 100644 (file)
 
 #include "fcntl--.h" /* for the open->open_safer mapping */
 
+#if !defined O_NOFOLLOW
+# define O_NOFOLLOW 0
+#endif
+
 /* Assuming we can use open-with-O_NOFOLLOW, open DIR and fchdir into it --
    but fail (setting errno to EACCES) if anyone replaces it with a symlink,
    or otherwise changes its type.  Return zero upon success.  */