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().
This commit is contained in:
David Herrmann
2013-12-10 23:28:07 +00:00
committed by Lennart Poettering
parent f820cf99c1
commit 559a4d4cda
-8
View File
@@ -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);
}