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 431243193..5bf0afbb4 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1926,8 +1926,7 @@ read_config_file_depth(const char *filename, struct passwd *pw, | |||
1926 | 1926 | ||
1927 | if (fstat(fileno(f), &sb) == -1) | 1927 | if (fstat(fileno(f), &sb) == -1) |
1928 | fatal("fstat %s: %s", filename, strerror(errno)); | 1928 | fatal("fstat %s: %s", filename, strerror(errno)); |
1929 | if (((sb.st_uid != 0 && sb.st_uid != getuid()) || | 1929 | if (!secure_permissions(&sb, getuid())) |
1930 | (sb.st_mode & 022) != 0)) | ||
1931 | fatal("Bad owner or permissions on %s", filename); | 1930 | fatal("Bad owner or permissions on %s", filename); |
1932 | } | 1931 | } |
1933 | 1932 | ||