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:
+6
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user