diff options
author | Evgeny Vereshchagin <evvers@ya.ru> | 2016-08-19 23:33:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-19 23:33:49 +0300 |
commit | 29272c04a73b00b5420ee686d73c3bc74d29d169 (patch) | |
tree | 4d6b0f3be155284a71a3024d54738c8f6054caf7 /src/systemctl/systemctl.c | |
parent | 16d901e251dc51162bcdda25b4be8eea964ed548 (diff) | |
parent | 450442cf93375af58161c1a9b973e3dfba60cba0 (diff) |
Merge pull request #3909 from poettering/mount-tool
add a new tool for creating transient mount and automount units
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r-- | src/systemctl/systemctl.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index b4ce6fba5a..4444e3064d 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -5093,7 +5093,6 @@ static int set_property(int argc, char *argv[], void *userdata) { _cleanup_(sd_bus_error_free) sd_bus_error error = SD_BUS_ERROR_NULL; _cleanup_free_ char *n = NULL; sd_bus *bus; - char **i; int r; r = acquire_bus(BUS_MANAGER, &bus); @@ -5124,11 +5123,9 @@ static int set_property(int argc, char *argv[], void *userdata) { if (r < 0) return bus_log_create_error(r); - STRV_FOREACH(i, strv_skip(argv, 2)) { - r = bus_append_unit_property_assignment(m, *i); - if (r < 0) - return r; - } + r = bus_append_unit_property_assignment_many(m, strv_skip(argv, 2)); + if (r < 0) + return r; r = sd_bus_message_close_container(m); if (r < 0) |