mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
(O_NOFOLLOW): Define, if necessary.
This commit is contained in:
1 parent
6ed15904b1
commit
bd80c2e5a7
1 file changed
+4
@@ -34,6 +34,10 @@
|
||||
|
||||
#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. */
|
||||
|
||||
Reference in new issue
Block a user