summaryrefslogtreecommitdiff
path: root/src/shared/conf-parser.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-02-03 12:52:16 +0100
committerLennart Poettering <lennart@poettering.net>2014-02-03 19:59:18 +0100
commitfdb9161cd3e1a64eb9a653a6bf69596670d6e942 (patch)
tree1e3bf14a87ebea497cf9829d3070e02f27308749 /src/shared/conf-parser.c
parente59749b1f8a960060b7b8e850cc79f97ddaf2db4 (diff)
conf-parser: warn when we open configuration files with weird access bits
Diffstat (limited to 'src/shared/conf-parser.c')
-rw-r--r--src/shared/conf-parser.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c
index df4e961ea0..d5a639e874 100644
--- a/src/shared/conf-parser.c
+++ b/src/shared/conf-parser.c
@@ -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;