timedated: fixed NTP enabled: n/a

This commit is contained in:
Harald Hoyer 2013-04-17 08:28:41 +02:00
parent ac714a78fd
commit 7e7d4da229
2 changed files with 5 additions and 4 deletions

2
TODO
View file

@ -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

View file

@ -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;
}
}
}