Browse code

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>

Heiko Hund authored on 2012/02/19 04:44:12
Showing 1 changed files
... ...
@@ -243,7 +243,7 @@ typedef unsigned long in_addr_t;
243 243
 #endif
244 244
 
245 245
 #ifndef X_OK
246
-#define X_OK 1
246
+#define X_OK 0
247 247
 #endif
248 248
 
249 249
 #ifndef F_OK