conf-parser: ignore trailing back-slash in comment

Fixes #10598.
This commit is contained in:
Yu Watanabe
2018-11-08 18:09:04 +09:00
parent 8d2411f693
commit 9adbfeb38a
2 changed files with 21 additions and 6 deletions
+4 -1
View File
@@ -174,7 +174,7 @@ static int parse_line(
if (!*l)
return 0;
if (strchr(COMMENTS "\n", *l))
if (*l == '\n')
return 0;
include = first_word(l, ".include");
@@ -327,6 +327,9 @@ int config_parse(const char *unit,
return r;
}
if (strchr(COMMENTS, *buf))
continue;
l = buf;
if (!(flags & CONFIG_PARSE_REFUSE_BOM)) {
char *q;