diff options
author | Sven Eden <yamakuzure@gmx.net> | 2017-07-27 17:48:36 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-27 17:55:34 +0200 |
commit | fe869e81deafba5e0426a35e9a52e13a01772039 (patch) | |
tree | 6c2a0b721212e507cf01dfb3e4b9fc5aa127d3dc | |
parent | d3c0437914d1460f222eeac60ee177add8740b71 (diff) |
Prep v234: Check against TRANSPORT_LOCAL in check_inhibitors()
-rw-r--r-- | src/login/eloginctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/login/eloginctl.c b/src/login/eloginctl.c index 451b5b76f..8adfb62e9 100644 --- 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", |