diff options
author | Kay Sievers <kay@vrfy.org> | 2013-12-04 23:36:02 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-05 00:22:28 +0100 |
commit | 65dae17a2f890b12a07dd4901b3db02b1031c463 (patch) | |
tree | 111af98c07c8a491a56c27225fe210a8c2c99832 /src/libsystemd-bus/bus-kernel.c | |
parent | a8053f197e228437a6c49101a7c513b4955f7883 (diff) |
bus: switch to multiple KDBUS_ITEM_NAME including the flags
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index b85a10dd38..2c87f22fd7 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -28,6 +28,7 @@ #include <sys/mman.h> #include "util.h" +#include "strv.h" #include "bus-internal.h" #include "bus-message.h" @@ -800,9 +801,10 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) { destination = d->str; break; - case KDBUS_ITEM_NAMES: - m->creds.well_known_names = d->str; - m->creds.well_known_names_size = l; + case KDBUS_ITEM_NAME: + r = strv_extend(&m->creds.well_known_names, d->name.name); + if (r < 0) + goto fail; m->creds.mask |= SD_BUS_CREDS_WELL_KNOWN_NAMES & bus->creds_mask; break; |