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 0b1370a8e..70fac6824 100644 --- a/readconf.c +++ b/readconf.c | |||
@@ -1773,8 +1773,7 @@ read_config_file_depth(const char *filename, struct passwd *pw, | |||
1773 | 1773 | ||
1774 | if (fstat(fileno(f), &sb) == -1) | 1774 | if (fstat(fileno(f), &sb) == -1) |
1775 | fatal("fstat %s: %s", filename, strerror(errno)); | 1775 | fatal("fstat %s: %s", filename, strerror(errno)); |
1776 | if (((sb.st_uid != 0 && sb.st_uid != getuid()) || | 1776 | if (!secure_permissions(&sb, getuid())) |
1777 | (sb.st_mode & 022) != 0)) | ||
1778 | fatal("Bad owner or permissions on %s", filename); | 1777 | fatal("Bad owner or permissions on %s", filename); |
1779 | } | 1778 | } |
1780 | 1779 | ||