]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
define access mode flag X_OK as 0 on Windows
authorHeiko Hund <heiko.hund@sophos.com>
Sat, 18 Feb 2012 19:44:12 +0000 (20:44 +0100)
committerDavid Sommerseth <davids@redhat.com>
Mon, 20 Feb 2012 09:25:09 +0000 (10:25 +0100)
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>
win/config.h.in

index b5c31b8f505288e4af4e762c4765a7737d40df30..fcb8d6c5f1f6053538f02a7b8e130b00f2916e6e 100644 (file)
@@ -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