conf-parser: warn if an assignment is place outside of a section
https://bugzilla.redhat.com/show_bug.cgi?id=783134
This commit is contained in:
parent
b19be9eb9e
commit
62f168a05b
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue