diff options
author | Dave Reisner <dreisner@archlinux.org> | 2013-03-20 19:25:37 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-03-20 19:25:37 -0400 |
commit | 11ea5a4a7f6530b970ab32f1b6215c74e7475979 (patch) | |
tree | 2af2bd646b300727f05186bf006dcb415a8003a7 | |
parent | 23ea3dab15181a3966ec45fa2ccbb81e59d2e0a7 (diff) |
bus: compare to negative errno
-rw-r--r-- | src/libsystemd-bus/bus-error.c | 2 |
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"); |