mirror of
https://github.com/systemd/systemd.git
synced 2026-08-05 07:30:30 +00:00
Merge pull request #14964 from yuwata/conf-parser-fix-line-number
conf-parser: fix line number in error message
This commit is contained in:
@@ -334,6 +334,8 @@ int config_parse(const char *unit,
|
||||
return r;
|
||||
}
|
||||
|
||||
line++;
|
||||
|
||||
l = skip_leading_chars(buf, WHITESPACE);
|
||||
if (*l != '\0' && strchr(COMMENTS, *l))
|
||||
continue;
|
||||
@@ -390,7 +392,7 @@ int config_parse(const char *unit,
|
||||
|
||||
r = parse_line(unit,
|
||||
filename,
|
||||
++line,
|
||||
line,
|
||||
sections,
|
||||
lookup,
|
||||
table,
|
||||
|
||||
Reference in New Issue
Block a user