From fdb9161cd3e1a64eb9a653a6bf69596670d6e942 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 3 Feb 2014 12:52:16 +0100 Subject: conf-parser: warn when we open configuration files with weird access bits --- src/shared/conf-parser.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/conf-parser.c') 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; -- cgit v1.2.3-54-g00ecf