chiark / gitweb /
timedate: uniq'ify ntp units list
authorLennart Poettering <lennart@poettering.net>
Tue, 3 Jul 2012 13:37:04 +0000 (15:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Jul 2012 13:37:04 +0000 (15:37 +0200)
NEWS
src/timedate/timedated.c

diff --git a/NEWS b/NEWS
index 82955f9095b52109e554c662c868424068c081bc..3c7c086197c1ef931785b63b3f5fcbee39d27e78 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
index 5387699bf316b1d1830fe1f7989b281f40cb6df1..237eb248949675d5b167f2180642f0c163123ee1 100644 (file)
@@ -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) {