aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-14 22:18:49 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-14 22:45:14 -0500
commit5958d08962a11950287bc7eaa4094a9c15c798d1 (patch)
treec17fc09a6875274cde5e50f9477f88f22c30f88e /src/libsystemd-bus/bus-util.c
parenttest-journal-syslog: use streq_ptr since we pass in NULL (diff)
downloadsystemd-5958d08962a11950287bc7eaa4094a9c15c798d1.tar.gz
systemd-5958d08962a11950287bc7eaa4094a9c15c798d1.tar.bz2
systemd-5958d08962a11950287bc7eaa4094a9c15c798d1.zip
bus: return negative errno on error
https://bugs.freedesktop.org/show_bug.cgi?id=72688
Diffstat (limited to 'src/libsystemd-bus/bus-util.c')
-rw-r--r--src/libsystemd-bus/bus-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-util.c b/src/libsystemd-bus/bus-util.c
index 30ee67e85..da4668b86 100644
--- a/src/libsystemd-bus/bus-util.c
+++ b/src/libsystemd-bus/bus-util.c
@@ -328,7 +328,7 @@ int bus_verify_polkit_async(
if (sd_bus_error_has_name(e, SD_BUS_ERROR_SERVICE_UNKNOWN))
return -EACCES;
- return sd_bus_error_get_errno(e);
+ return -sd_bus_error_get_errno(e);
}
r = sd_bus_message_enter_container(q->reply, 'r', "bba{ss}");