X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fconf-parser.c;h=a9b01135e6a1dfc7a3bcbd335b6d59c1a21cb7be;hb=ffa16db02673ffa155ffb2649e72a935a1ff70f5;hp=135b175c09a5dd4a5d939a34c41bf01b1121f39a;hpb=7f110ff9b8828b477e87de7b28c708cf69a3d008;p=elogind.git diff --git a/src/conf-parser.c b/src/conf-parser.c index 135b175c0..a9b01135e 100644 --- a/src/conf-parser.c +++ b/src/conf-parser.c @@ -219,8 +219,13 @@ static int parse_line( return 0; } - if (sections && !*section) + if (sections && !*section) { + + if (!relaxed) + log_info("[%s:%u] Assignment outside of section. Ignoring.", filename, line); + return 0; + } e = strchr(l, '='); if (!e) {