conf-parser: warn when we open configuration files with weird access bits

This commit is contained in:
Lennart Poettering
2014-02-03 19:59:18 +01:00
parent e59749b1f8
commit fdb9161cd3
4 changed files with 35 additions and 23 deletions
+2
View File
@@ -332,6 +332,8 @@ int config_parse(const char *unit,
}
}
fd_warn_permissions(filename, fileno(f));
while (!feof(f)) {
char l[LINE_MAX], *p, *c = NULL, *e;
bool escaped = false;