chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
41dd15e
)
systemctl: fix "reboot" call
author
Kay Sievers
<kay@vrfy.org>
Fri, 8 Nov 2013 16:49:59 +0000
(17:49 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Fri, 8 Nov 2013 16:49:59 +0000
(17:49 +0100)
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index 73fdbdbed6b6e6dda16ea307e0fd40c69a0c058b..c2f7836a5e18b1924f74d2a5906d912072286477 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-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;
/* 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);
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;
_cleanup_free_ char *comm = NULL, *user = NULL;
_cleanup_strv_free_ char **sv = NULL;