diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-15 19:37:24 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-11-16 01:35:44 +0100 |
commit | 02dd646b16c2c1339197f69e96d2395c7d5357a8 (patch) | |
tree | 97d241525a6a09232d5d7503b3c93c2bf809d962 | |
parent | sd-bus: insert missing space (diff) | |
download | systemd-02dd646b16c2c1339197f69e96d2395c7d5357a8.tar.xz systemd-02dd646b16c2c1339197f69e96d2395c7d5357a8.zip |
sd-bus: drop SD_BUS_CREDS_AUGMENT flag
On checking if the message has enough credentials, the special flag
needs to be dropped.
Fixes a bug introduced by 705a415f684f8e9ee19983e5859de00bbb1477cb.
-rw-r--r-- | src/libsystemd/sd-bus/bus-convenience.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-convenience.c b/src/libsystemd/sd-bus/bus-convenience.c index 81892c3254..989e577de5 100644 --- a/src/libsystemd/sd-bus/bus-convenience.c +++ b/src/libsystemd/sd-bus/bus-convenience.c @@ -655,7 +655,7 @@ _public_ int sd_bus_query_sender_creds(sd_bus_message *call, uint64_t mask, sd_b c = sd_bus_message_get_creds(call); /* All data we need? */ - if (c && (mask & ~c->mask) == 0) { + if (c && (mask & ~SD_BUS_CREDS_AUGMENT & ~c->mask) == 0) { *ret = sd_bus_creds_ref(c); return 0; } |