aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cfg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cfg.c b/cfg.c
index 85da6ce..6843bd6 100644
--- 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;
}