From b41dd0d2dbe9a286e301e7ab09df6be98ab097a8 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Tue, 8 Jan 2019 13:04:57 +0900 Subject: [PATCH] conf-parser: accept whitespaces before comments Closes #11343. --- src/shared/conf-parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3