1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-27 01:55:32 +03:00

busctl: fix 'command line' style output of properties

This commit is contained in:
Lennart Poettering 2014-12-02 12:58:13 +01:00
parent d2dc52dbc4
commit 1ed24c6170

View File

@ -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;
}
}