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
(from parent 1:
d3c0437
)
Prep v234: Check against TRANSPORT_LOCAL in check_inhibitors()
author
Sven Eden
<yamakuzure@gmx.net>
Thu, 27 Jul 2017 15:48:36 +0000
(17:48 +0200)
committer
Sven Eden
<yamakuzure@gmx.net>
Thu, 27 Jul 2017 15:55:34 +0000
(17:55 +0200)
src/login/eloginctl.c
patch
|
blob
|
history
diff --git
a/src/login/eloginctl.c
b/src/login/eloginctl.c
index 451b5b76f7db17c34d5a214471a50295248f7bd5..8adfb62e9574c7561bdf1fce7700719113675bca 100644
(file)
--- a/
src/login/eloginctl.c
+++ b/
src/login/eloginctl.c
@@
-89,6
+89,9
@@
static int check_inhibitors(sd_bus* bus, enum elogind_action a) {
if (!on_tty())
return 0;
+ if (arg_transport != BUS_TRANSPORT_LOCAL)
+ return 0;
+
r = sd_bus_call_method(
bus,
"org.freedesktop.login1",