diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-12-02 12:58:13 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-12-02 13:23:04 +0100 |
commit | 1ed24c6170c95fbe61fed919db2e98cf0d1d568e (patch) | |
tree | e715e864063cdce80b93ad2c617f3bb94d77a9cc /src/libsystemd/sd-bus | |
parent | d2dc52dbc45051faa6356213a537081084e9dda4 (diff) |
busctl: fix 'command line' style output of properties
Diffstat (limited to 'src/libsystemd/sd-bus')
-rw-r--r-- | src/libsystemd/sd-bus/busctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/busctl.c b/src/libsystemd/sd-bus/busctl.c index 1ba4e8adac..dd6ae865b6 100644 --- a/src/libsystemd/sd-bus/busctl.c +++ b/src/libsystemd/sd-bus/busctl.c @@ -538,7 +538,7 @@ static int format_cmdline(sd_bus_message *m, FILE *f, bool needs_space) { fprintf(f, "%s", contents); } - r = format_cmdline(m, f, true); + r = format_cmdline(m, f, needs_space || IN_SET(type, SD_BUS_TYPE_ARRAY, SD_BUS_TYPE_VARIANT)); if (r < 0) return r; @@ -614,6 +614,7 @@ static int format_cmdline(sd_bus_message *m, FILE *f, bool needs_space) { assert_not_reached("Unknown basic type."); } + needs_space = true; } } |