[systemd-commits] src/core
Lennart Poettering
lennart at kemper.freedesktop.org
Tue Dec 10 15:28:26 PST 2013
src/core/dbus-unit.c | 8 --------
1 file changed, 8 deletions(-)
New commits:
commit 559a4d4cda0155708e5f0797afeb8e80a4e26e43
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Dec 2 23:26:55 2013 +0100
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().
diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 1fec0e3..e95a529 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);
}
More information about the systemd-commits
mailing list