summaryrefslogtreecommitdiff
path: root/src/shared/dbus-common.c
diff options
context:
space:
mode:
authorSimon Peeters <peeters.simon@gmail.com>2012-08-10 17:32:19 +0200
committerLennart Poettering <lennart@poettering.net>2012-08-10 18:08:22 +0200
commitc516c8d17f77a1c761447f4c40c8dfffeda2e06d (patch)
tree35fcd129b615b098432f2f0d658e27cab5ab915e /src/shared/dbus-common.c
parentfd5b4ca11ea2b8a82343bc0db6a2f422beb305f1 (diff)
systemctl: fix issue with systemctl daemon-reexec
Diffstat (limited to 'src/shared/dbus-common.c')
-rw-r--r--src/shared/dbus-common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/dbus-common.c b/src/shared/dbus-common.c
index 7f0dce5ad3..da2dc2e983 100644
--- a/src/shared/dbus-common.c
+++ b/src/shared/dbus-common.c
@@ -1287,7 +1287,8 @@ int bus_method_call_with_reply(DBusConnection *bus,
reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error);
dbus_message_unref(m);
if (!reply) {
- log_error("Failed to issue method call: %s", bus_error_message(&error));
+ if (!return_error)
+ log_error("Failed to issue method call: %s", bus_error_message(&error));
if (bus_error_is_no_service(&error))
r = -ENOENT;
else if (dbus_error_has_name(&error, DBUS_ERROR_ACCESS_DENIED))