mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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")
This commit is contained in:
parent
cd31d1884f
commit
e955c45881
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user