projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71b2173
)
conf-parser: accept whitespaces before comments
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 8 Jan 2019 04:04:57 +0000
(13:04 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Tue, 8 Jan 2019 05:05:15 +0000
(14:05 +0900)
Closes #11343.
src/shared/conf-parser.c
patch
|
blob
|
history
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index
e41027a
..
b80c147
100644
(file)
--- 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;