]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
conf-parser: accept whitespaces before comments
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Jan 2019 04:04:57 +0000 (13:04 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Jan 2019 05:05:15 +0000 (14:05 +0900)
Closes #11343.

src/shared/conf-parser.c

index e41027a0bcd1d447b52a3c10336d4348daa95317..b80c147807e9de2b3835d93d97de2a49e7bea769 100644 (file)
@@ -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;