diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-08 20:49:53 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-03-09 06:04:21 +0100 |
commit | 03a81441b1a490f8fc2a19aeb9b23299657c380c (patch) | |
tree | fb5762cf48e3c5711811828eb829c09a9e628014 /src/timedate | |
parent | Merge pull request #18927 from poettering/dissect-alloca-fix (diff) | |
download | systemd-03a81441b1a490f8fc2a19aeb9b23299657c380c.tar.xz systemd-03a81441b1a490f8fc2a19aeb9b23299657c380c.zip |
timedated: fix skipping of comments in config file
Reading file '/usr/lib/systemd/ntp-units.d/80-systemd-timesync.list'
Failed to add NTP service "# This file is part of systemd.", ignoring: Invalid argument
Failed to add NTP service "# See systemd-timedated.service(8) for more information.", ignoring: Invalid argument
:(
Diffstat (limited to 'src/timedate')
-rw-r--r-- | src/timedate/timedated.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 1257d950ae..567244dc24 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -211,7 +211,7 @@ static int context_parse_ntp_services_from_disk(Context *c) { break; word = strstrip(line); - if (isempty(word) || startswith("#", word)) + if (isempty(word) || startswith(word, "#")) continue; r = context_add_ntp_service(c, word, *f); |