diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2013-12-02 23:26:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-12-10 23:28:07 +0000 |
commit | 559a4d4cda0155708e5f0797afeb8e80a4e26e43 (patch) | |
tree | da79f6caf96bcbe737031f294219327ea91d6ced /src/core/dbus-unit.c | |
parent | f820cf99c1cdb58e270fdf92389fea0413c1484e (diff) |
core: fix Unit.SetProperties argument parsing
SetProperties has signature "ba(sv)", but the bus_unit_set_properties()
helper already does a enter_container('a', "sv") so we have to skip it in
bus_unit_method_set_properties().
Diffstat (limited to 'src/core/dbus-unit.c')
-rw-r--r-- | src/core/dbus-unit.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 1fec0e3b1f..e95a529277 100644 --- a/src/core/dbus-unit.c +++ b/src/core/dbus-unit.c @@ -480,18 +480,10 @@ int bus_unit_method_set_properties(sd_bus *bus, sd_bus_message *message, void *u if (r < 0) return r; - r = sd_bus_message_enter_container(message, 'a', "(sv)"); - if (r < 0) - return r; - r = bus_unit_set_properties(u, message, runtime ? UNIT_RUNTIME : UNIT_PERSISTENT, true, error); if (r < 0) return r; - r = sd_bus_message_exit_container(message); - if (r < 0) - return r; - return sd_bus_reply_method_return(message, NULL); } |