diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-14 03:20:12 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-14 03:20:23 +0200 |
commit | 77930f11207ef6ec1f9284a1179fdd78c3364cba (patch) | |
tree | d51be38f37d13f32e6d1bffc01fabbec2d0e63d7 /src/libsystemd-bus/bus-kernel.c | |
parent | 75722f1d48cf1a93cc4a24e332c9871808c0e641 (diff) |
kdbus: also parse cmdline message attribute
Diffstat (limited to 'src/libsystemd-bus/bus-kernel.c')
-rw-r--r-- | src/libsystemd-bus/bus-kernel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd-bus/bus-kernel.c b/src/libsystemd-bus/bus-kernel.c index ca47ea2f89..6105a02070 100644 --- a/src/libsystemd-bus/bus-kernel.c +++ b/src/libsystemd-bus/bus-kernel.c @@ -371,6 +371,11 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k, sd_bus_mess m->tid_comm = d->str; else if (d->type == KDBUS_MSG_SRC_EXE) m->exe = d->str; + else if (d->type == KDBUS_MSG_SRC_CMDLINE) { + m->cmdline = d->str; + m->cmdline_length = l; + } else + log_debug("Got unknown field from kernel %llu", d->type); } r = bus_message_parse_fields(m); |