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 82955f9..3c7c086 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 5387699..237eb24 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) {