summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c
index 052d4b1ac..6b01f20d2 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1820,8 +1820,7 @@ read_config_file_depth(const char *filename, struct passwd *pw,
1820 1820
1821 if (fstat(fileno(f), &sb) == -1) 1821 if (fstat(fileno(f), &sb) == -1)
1822 fatal("fstat %s: %s", filename, strerror(errno)); 1822 fatal("fstat %s: %s", filename, strerror(errno));
1823 if (((sb.st_uid != 0 && sb.st_uid != getuid()) || 1823 if (!secure_permissions(&sb, getuid()))
1824 (sb.st_mode & 022) != 0))
1825 fatal("Bad owner or permissions on %s", filename); 1824 fatal("Bad owner or permissions on %s", filename);
1826 } 1825 }
1827 1826