systemctl: fix "reboot" call

This commit is contained in:
Kay Sievers 2013-11-08 17:49:59 +01:00
parent 41dd15e474
commit 4aa2beacb1
1 changed files with 2 additions and 2 deletions

View File

@ -1936,11 +1936,11 @@ static int check_inhibitors(sd_bus *bus, enum action a) {
/* If logind is not around, then there are no inhibitors... */
return 0;
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "ssssuu");
r = sd_bus_message_enter_container(reply, SD_BUS_TYPE_ARRAY, "(ssssuu)");
if (r < 0)
return bus_log_parse_error(r);
while ((r = sd_bus_message_read(reply, "ssssuu", &what, &who, &why, &mode, &uid, &pid)) > 0) {
while ((r = sd_bus_message_read(reply, "(ssssuu)", &what, &who, &why, &mode, &uid, &pid)) > 0) {
_cleanup_free_ char *comm = NULL, *user = NULL;
_cleanup_strv_free_ char **sv = NULL;