diff options
author | Lukasz Skalski <l.skalski@samsung.com> | 2015-02-06 17:08:32 +0100 |
---|---|---|
committer | Daniel Mack <daniel@zonque.org> | 2015-02-07 10:27:45 +0100 |
commit | cfcc160f2237e73f3bf42004f79ae324b1732967 (patch) | |
tree | 12a483ca38e7e6bfa1128179440b64f04f0a5fbf /src/bus-proxyd | |
parent | 4e829d218cb2ba7e50616945007081f4c7fe0e29 (diff) | |
download | systemd-cfcc160f2237e73f3bf42004f79ae324b1732967.tar.gz |
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
Diffstat (limited to 'src/bus-proxyd')
-rw-r--r-- | src/bus-proxyd/driver.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bus-proxyd/driver.c b/src/bus-proxyd/driver.c index 23911c6a3c..b27583959c 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); |