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:
parent
d2dc52dbc4
commit
1ed24c6170
@ -538,7 +538,7 @@ static int format_cmdline(sd_bus_message *m, FILE *f, bool needs_space) {
|
|||||||
fprintf(f, "%s", contents);
|
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)
|
if (r < 0)
|
||||||
return r;
|
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.");
|
assert_not_reached("Unknown basic type.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
needs_space = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user