[systemd-commits] src/libsystemd-bus
Dave Reisner
dreisner at kemper.freedesktop.org
Wed Mar 20 16:32:09 PDT 2013
src/libsystemd-bus/bus-error.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 11ea5a4a7f6530b970ab32f1b6215c74e7475979
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Mar 20 19:25:37 2013 -0400
bus: compare to negative errno
diff --git a/src/libsystemd-bus/bus-error.c b/src/libsystemd-bus/bus-error.c
index f86da62..55b4187 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");
More information about the systemd-commits
mailing list