From: Yu Watanabe Date: Tue, 8 Jan 2019 04:04:57 +0000 (+0900) Subject: conf-parser: accept whitespaces before comments X-Git-Tag: v241-rc1~103^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b41dd0d2dbe9a286e301e7ab09df6be98ab097a8;p=thirdparty%2Fsystemd.git conf-parser: accept whitespaces before comments Closes #11343. --- diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index e41027a0bcd..b80c147807e 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -321,7 +321,7 @@ int config_parse(const char *unit, return r; } - if (strchr(COMMENTS, *buf)) + if (strchr(COMMENTS, *skip_leading_chars(buf, WHITESPACE))) continue; l = buf;