[systemd-commits] src/timedate
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Feb 14 15:06:09 PST 2012
src/timedate/timedated.c | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 2aa4c31529c2a370b560bc533fc677da27618044
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 15 00:05:31 2012 +0100
timedate: don't fail if NTP is not installed
https://bugzilla.redhat.com/show_bug.cgi?id=790260
diff --git a/src/timedate/timedated.c b/src/timedate/timedated.c
index 792c61a..6a7d980 100644
--- a/src/timedate/timedated.c
+++ b/src/timedate/timedated.c
@@ -334,6 +334,14 @@ static int read_ntp(DBusConnection *bus) {
reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error);
if (!reply) {
+
+ if (streq(error.name, "org.freedesktop.DBus.Error.FileNotFound")) {
+ /* NTP is not installed. */
+ tz.use_ntp = false;
+ r = 0;
+ goto finish;
+ }
+
log_error("Failed to issue method call: %s", bus_error_message(&error));
r = -EIO;
goto finish;
More information about the systemd-commits
mailing list