diff options
author | Daniel Mack <zonque@gmail.com> | 2014-03-24 14:44:58 +0100 |
---|---|---|
committer | Daniel Mack <zonque@gmail.com> | 2014-03-24 14:45:34 +0100 |
commit | e955c45881eec5895fa10bf107bee3fafed38645 (patch) | |
tree | 84f2ee5b80b4de963d6fa71a76b99de2b071d657 /src/libsystemd | |
parent | cd31d1884f1ecf38e11bc6268f446d75dfafbc25 (diff) |
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")
Diffstat (limited to 'src/libsystemd')
-rw-r--r-- | src/libsystemd/sd-bus/sd-bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c index 3929b351e2..7074dc7246 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)) |