From 4ebc587eab73e03ef64d344a5707d84e7f8d875a Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Sat, 18 Feb 2012 20:44:12 +0100 Subject: [PATCH] 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 Acked-by: David Sommerseth Signed-off-by: David Sommerseth --- win/config.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win/config.h.in b/win/config.h.in index b5c31b8f5..fcb8d6c5f 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 -- 2.47.2