mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
conf-parser: print message about invalid sections
This commit is contained in:
parent
46205bb66a
commit
27563bb44a
@ -111,6 +111,7 @@ static int parse_line(const char *filename, unsigned line, char **section, const
|
||||
return -ENOMEM;
|
||||
|
||||
if (sections && !strv_contains((char**) sections, n)) {
|
||||
log_error("[%s:%u] Unknown section '%s'.", filename, line, n);
|
||||
free(n);
|
||||
return -EBADMSG;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user