summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeiko Hund <heiko.hund@sophos.com>2012-02-18 20:44:12 +0100
committerDavid Sommerseth <davids@redhat.com>2012-02-20 10:25:09 +0100
commit4ebc587eab73e03ef64d344a5707d84e7f8d875a (patch)
tree4fc0fd46822c63a388bd77f76007a2e048cb7da4
parent5e1e5495328bb491a186d72544d2e57f49dfdedc (diff)
downloadopenvpn-4ebc587eab73e03ef64d344a5707d84e7f8d875a.tar.gz
openvpn-4ebc587eab73e03ef64d344a5707d84e7f8d875a.tar.xz
openvpn-4ebc587eab73e03ef64d344a5707d84e7f8d875a.zip
define access mode flag X_OK as 0 on Windows
The _access and _waccess functions in Windows don't know about X_OK (1). If you pass an uneven mode flag the C runtime's default invalid parameter handler ends execution of openvpn. Signed-off-by: Heiko Hund <heiko.hund@sophos.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
-rw-r--r--win/config.h.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/config.h.in b/win/config.h.in
index b5c31b8..fcb8d6c 100644
--- a/win/config.h.in
+++ b/win/config.h.in
@@ -243,7 +243,7 @@ typedef unsigned long in_addr_t;
#endif
#ifndef X_OK
-#define X_OK 1
+#define X_OK 0
#endif
#ifndef F_OK