From: Lennart Poettering Date: Wed, 19 Mar 2014 00:36:03 +0000 (+0100) Subject: core: when creating an activating busname attach all metadata fields to the messages... X-Git-Tag: v212~100 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;ds=inline;h=d2e7b05f248a03dc528f4a270dac2ac3ff3e605a;p=elogind.git core: when creating an activating busname attach all metadata fields to the messages queued for it This way we can be sure that the service the messages are ultimately intended for finds all fields it might need. --- diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c index 64a74d6ed..977a7cda4 100644 --- a/src/libsystemd/sd-bus/bus-kernel.c +++ b/src/libsystemd/sd-bus/bus-kernel.c @@ -1422,6 +1422,7 @@ int bus_kernel_create_starter(const char *bus, const char *name, bool accept_fd, hello->size = size; hello->conn_flags = KDBUS_HELLO_ACTIVATOR | (accept_fd ? KDBUS_HELLO_ACCEPT_FD : 0); hello->pool_size = KDBUS_POOL_SIZE; + hello->attach_flags = _KDBUS_ATTACH_ALL; if (ioctl(fd, KDBUS_CMD_HELLO, hello) < 0) { safe_close(fd);