[systemd-commits] src/libsystemd
Daniel Mack
zonque at kemper.freedesktop.org
Mon Mar 24 06:48:53 PDT 2014
src/libsystemd/sd-bus/sd-bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e955c45881eec5895fa10bf107bee3fafed38645
Author: Daniel Mack <zonque at gmail.com>
Date: Mon Mar 24 14:44:58 2014 +0100
sd-bus: invert bus->is_kernel check in sd_bus_get_peer_creds()
The bug was introducted in a3d59cd1 ("sd-bus: don't use assert_return()
to check for disconnected bus connections")
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index 3929b35..7074dc7 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -3268,7 +3268,7 @@ _public_ int sd_bus_get_peer_creds(sd_bus *bus, uint64_t mask, sd_bus_creds **re
assert_return(ret, -EINVAL);
assert_return(!bus_pid_changed(bus), -ECHILD);
- if (!bus->is_kernel)
+ if (bus->is_kernel)
return -ENOTSUP;
if (!BUS_IS_OPEN(bus->state))
More information about the systemd-commits
mailing list