1
0
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:
Lennart Poettering 2010-04-13 19:26:26 +02:00
parent 46205bb66a
commit 27563bb44a

View File

@ -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;
}