mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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 :(
This commit is contained in:
parent
a2aa51b740
commit
03a81441b1
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user