From: Selva Nair Date: Wed, 16 Nov 2016 18:23:13 +0000 (-0500) Subject: Unbreak windows build X-Git-Tag: v2.4_beta1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aea4901034c436a539a997b6a504c009496f6f5;p=thirdparty%2Fopenvpn.git Unbreak windows build S_IRWXG, S_IRWXO are not defined in mingw headers. Anyway these bits are not defined in st_mode on Windows, so just skip the test. Signed-off-by: Selva Nair Acked-by: Gert Doering Message-Id: <1479320593-27099-1-git-send-email-selva.nair@gmail.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13100.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index e88aa958f..44402a94a 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -2738,11 +2738,13 @@ check_file_access(const int type, const char *file, const int mode, const char * { msg (M_WARN | M_ERRNO, "WARNING: cannot stat file '%s'", file); } +#ifndef _WIN32 else { if (st.st_mode & (S_IRWXG|S_IRWXO)) msg (M_WARN, "WARNING: file '%s' is group or others accessible", file); } +#endif } /* Scream if an error is found */