systemctl: fix printing of individual properties

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2013-11-09 19:02:53 -05:00
parent 39da205fbb
commit 852c1b4d29
+5 -2
View File
@@ -2917,8 +2917,11 @@ static int print_property(const char *name, sd_bus_message *m, const char *conte
/* This is a low-level property printer, see
* print_status_info() for the nicer output */
if (arg_properties && !strv_find(arg_properties, name))
return 0;
if (arg_properties && !strv_find(arg_properties, name)) {
/* skip what we didn't read */
r = sd_bus_message_skip(m, contents);
return r;
}
switch (contents[0]) {