diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2023-01-02 10:44:43 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2023-01-02 10:45:30 -0500 |
commit | ae540898ea46df60208fe744ca824a655abb1128 (patch) | |
tree | 0d5de1b59da5aff21ab0dbef58406c53ba6fa972 | |
parent | d46ae0cccec6b7320a65e7484aca74db2fddf7a2 (diff) | |
download | lighttpd-git-ae540898ea46df60208fe744ca824a655abb1128.tar.gz |
[core] temporarily disable O_NOFOLLOW on Cygwin
broken in current cygwin; fixed in cygwin test
x-ref:
https://www.mail-archive.com/cygwin@cygwin.com/msg172400.html
-rw-r--r-- | src/fdevent.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fdevent.c b/src/fdevent.c index 0394f0e5..acf3dd83 100644 --- a/src/fdevent.c +++ b/src/fdevent.c @@ -171,6 +171,10 @@ int fdevent_dup_cloexec (int fd) { #endif int fdevent_open_cloexec(const char *pathname, int symlinks, int flags, mode_t mode) { +#ifdef __CYGWIN__ /* broken in current cygwin; fixed in cygwin test */ +#undef O_NOFOLLOW +#define O_NOFOLLOW 0 +#endif if (!symlinks) flags |= O_NOFOLLOW; #ifdef O_CLOEXEC return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode); |