diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-11-28 20:41:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-11-28 20:44:26 +0100 |
commit | a4297f08ed774ed6d980b6cadaf844bfb2c7a403 (patch) | |
tree | c20b812d660eade49aa45a226e6fa041cc64c0cd /src/libsystemd-bus/bus-convenience.c | |
parent | df41aaf9a2b195c9a8bb6fca6672cbf25bc147fb (diff) |
bus: merge sd_bus_get_owner() and sd_bus_get_owner_creds() into one call
Since the backing ioctl for this on kdbus is the same we retain
atomicity this way.
Diffstat (limited to 'src/libsystemd-bus/bus-convenience.c')
-rw-r--r-- | src/libsystemd-bus/bus-convenience.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-convenience.c b/src/libsystemd-bus/bus-convenience.c index e57b26bf6b..1a9c51fdc7 100644 --- a/src/libsystemd-bus/bus-convenience.c +++ b/src/libsystemd-bus/bus-convenience.c @@ -433,7 +433,7 @@ _public_ int sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_b * to get it from the sender or peer */ if (call->sender) - return sd_bus_get_owner_creds(call->bus, call->sender, mask, creds); + return sd_bus_get_owner(call->bus, call->sender, mask, NULL, creds); else return sd_bus_get_peer_creds(call->bus, mask, creds); } |