summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-03-20 19:25:37 -0400
committerDave Reisner <dreisner@archlinux.org>2013-03-20 19:25:37 -0400
commit11ea5a4a7f6530b970ab32f1b6215c74e7475979 (patch)
tree2af2bd646b300727f05186bf006dcb415a8003a7
parent23ea3dab15181a3966ec45fa2ccbb81e59d2e0a7 (diff)
bus: compare to negative errno
-rw-r--r--src/libsystemd-bus/bus-error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-error.c b/src/libsystemd-bus/bus-error.c
index f86da624fd..55b418768a 100644
--- a/src/libsystemd-bus/bus-error.c
+++ b/src/libsystemd-bus/bus-error.c
@@ -161,7 +161,7 @@ int bus_error_from_errno(sd_bus_error *e, int error) {
if (error == -ENOMEM)
sd_bus_error_set_const(e, "org.freedesktop.DBus.Error.NoMemory", strerror(-error));
- else if (error == -EPERM || error == EACCES)
+ else if (error == -EPERM || error == -EACCES)
sd_bus_error_set_const(e, "org.freedesktop.DBus.Error.AccessDenied", strerror(-error));
else
sd_bus_error_set_const(e, "org.freedesktop.DBus.Error.Failed", "Operation failed");