[systemd-commits] src/bus-proxyd
Daniel Mack
zonque at kemper.freedesktop.org
Sat Feb 7 01:28:02 PST 2015
src/bus-proxyd/driver.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit cfcc160f2237e73f3bf42004f79ae324b1732967
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Fri Feb 6 17:08:32 2015 +0100
bus-proxyd: fix 'ListQueuedOwners' call
Set proper kdbus_cmd_list object size, otherwise:
dbus-send --system --dest=org.freedesktop.DBus --type=method_call \
print-reply / org.freedesktop.DBus.ListQueuedOwners string:org.freedesktop.systemd1
Error org.freedesktop.DBus.Error.InvalidArgs: Invalid argument
diff --git a/src/bus-proxyd/driver.c b/src/bus-proxyd/driver.c
index 23911c6..b275839 100644
--- a/src/bus-proxyd/driver.c
+++ b/src/bus-proxyd/driver.c
@@ -350,6 +350,7 @@ int bus_proxy_process_driver(sd_bus *a, sd_bus *b, sd_bus_message *m, SharedPoli
return synthetic_reply_method_errno(m, r, NULL);
cmd.flags = KDBUS_LIST_QUEUED;
+ cmd.size = sizeof(cmd);
r = ioctl(a->input_fd, KDBUS_CMD_LIST, &cmd);
if (r < 0)
return synthetic_reply_method_errno(m, -errno, NULL);
More information about the systemd-commits
mailing list