]> git.webhop.me Git - lcd4linux.git/commitdiff
ignore security check for cygwin
authormichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 26 Mar 2009 08:20:28 +0000 (08:20 +0000)
committermichux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 26 Mar 2009 08:20:28 +0000 (08:20 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1004 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

cfg.c

diff --git a/cfg.c b/cfg.c
index 85da6ce8ad4dd314d70b7ef63ee21d08df9d5ef6..6843bd666eeac20bd9656bccdbc782fb784b34f6 100644 (file)
--- a/cfg.c
+++ b/cfg.c
@@ -485,10 +485,12 @@ static int cfg_check_source(const char *file)
        error("security error: owner and/or group of '%s' don't match", file);
        error = -1;
     }
+#if ! defined(__CYGWIN__)    
     if (stbuf.st_mode & S_IRWXG || stbuf.st_mode & S_IRWXO) {
        error("security error: group or other have access to '%s'", file);
        error = -1;
     }
+#endif    
     return error;
 }