diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-07-03 15:37:04 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-03 15:37:04 +0200 |
commit | f6c13ce47ebee287f8b6a965ca5ca022a9f26e2c (patch) | |
tree | a1f3752367ee6fdbe591029d123070fdce5be946 | |
parent | f4bad2bd2abe8ae260a99a5336145d11efe79892 (diff) |
timedate: uniq'ify ntp units list
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/timedate/timedated.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -124,7 +124,7 @@ CHANGES WITH 186: additional capabilities to the container. * timedated will now read known NTP implementation unit names - from /usr/share/systemd/ntp-units, + from /usr/share/systemd/ntp-units.d/*.list, systemd-timedated-ntp.target has been removed. * journalctl gained a new switch "-b" that lists log data of diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c index 5387699bf3..237eb24894 100644 --- a/src/timedate/timedated.c +++ b/src/timedate/timedated.c @@ -354,7 +354,7 @@ static char** get_ntp_services(void) { strv_free(files); - return r; + return strv_uniq(r); } static int read_ntp(DBusConnection *bus) { |