diff options
Diffstat (limited to 'readconf.c')
-rw-r--r-- | readconf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/readconf.c b/readconf.c index 2399208f8..7f251dd4a 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1902,8 +1902,7 @@ read_config_file_depth(const char *filename, struct passwd *pw, | |||
1902 | 1902 | ||
1903 | if (fstat(fileno(f), &sb) == -1) | 1903 | if (fstat(fileno(f), &sb) == -1) |
1904 | fatal("fstat %s: %s", filename, strerror(errno)); | 1904 | fatal("fstat %s: %s", filename, strerror(errno)); |
1905 | if (((sb.st_uid != 0 && sb.st_uid != getuid()) || | 1905 | if (!secure_permissions(&sb, getuid())) |
1906 | (sb.st_mode & 022) != 0)) | ||
1907 | fatal("Bad owner or permissions on %s", filename); | 1906 | fatal("Bad owner or permissions on %s", filename); |
1908 | } | 1907 | } |
1909 | 1908 | ||