diff options
author | Anita Zhang <the.anitazha@gmail.com> | 2020-02-27 17:16:35 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 17:16:35 -0800 |
commit | 96100b8a04fd3a904181b9b154e7691cf2303161 (patch) | |
tree | 6ed9b39e45bff8d0ff81cc4d7d591b76dd9610f5 | |
parent | 9c7179bbfa5bca9c0711b61e4a80ee81f2b30ab8 (diff) | |
parent | 68c1ac1568910037a224c301d5c871af73493c16 (diff) | |
download | systemd-96100b8a04fd3a904181b9b154e7691cf2303161.tar.gz |
Merge pull request #14964 from yuwata/conf-parser-fix-line-number
conf-parser: fix line number in error message
-rw-r--r-- | src/shared/conf-parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index 318588cc1f..657df0a517 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -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, |