1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-29 21:55:36 +03:00

timedate: don't fail if NTP is not installed

https://bugzilla.redhat.com/show_bug.cgi?id=790260
This commit is contained in:
Lennart Poettering 2012-02-15 00:05:31 +01:00
parent 51f58f083a
commit 2aa4c31529

View File

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