chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
51f58f0
)
timedate: don't fail if NTP is not installed
author
Lennart Poettering
<lennart@poettering.net>
Tue, 14 Feb 2012 23:05:31 +0000
(
00:05
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 14 Feb 2012 23:05:31 +0000
(
00:05
+0100)
https://bugzilla.redhat.com/show_bug.cgi?id=790260
src/timedate/timedated.c
patch
|
blob
|
history
diff --git
a/src/timedate/timedated.c
b/src/timedate/timedated.c
index 792c61a7d78ac3e7b8aaa9776f7f6b4f86aaf792..6a7d980c3e9e9b484d3e79748756f766e9c32583 100644
(file)
--- 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;