mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
timedated: fixed NTP enabled: n/a
This commit is contained in:
parent
ac714a78fd
commit
7e7d4da229
2
TODO
2
TODO
@ -1,6 +1,4 @@
|
||||
Bugfixes:
|
||||
* timedatectl: NTP enabled: n/a
|
||||
|
||||
* systemctl --system show -p Fr<TAB> default.target doesn't show anything
|
||||
|
||||
* check systemd-tmpfiles for selinux context hookup for mknod(), symlink() and similar
|
||||
|
@ -90,6 +90,8 @@ typedef struct TZ {
|
||||
} TZ;
|
||||
|
||||
static TZ tz = {
|
||||
.zone = NULL,
|
||||
.local_rtc = false,
|
||||
.can_ntp = -1,
|
||||
.use_ntp = -1,
|
||||
};
|
||||
@ -303,9 +305,10 @@ static char** get_ntp_services(void) {
|
||||
if (l[0] == 0 || l[0] == '#')
|
||||
continue;
|
||||
|
||||
if (strv_extend(&r, l) < 0)
|
||||
if (strv_extend(&r, l) < 0) {
|
||||
log_oom();
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user