]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Unbreak windows build
authorSelva Nair <selva.nair@gmail.com>
Wed, 16 Nov 2016 18:23:13 +0000 (13:23 -0500)
committerGert Doering <gert@greenie.muc.de>
Wed, 16 Nov 2016 18:38:04 +0000 (19:38 +0100)
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 <selva.nair@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/options.c

index e88aa958f91139a042faa2dbdb33f8476d015884..44402a94a2143cce80003eab1228bd13dde923d6 100644 (file)
@@ -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 */