chiark / gitweb /
Prep v234: Check against TRANSPORT_LOCAL in check_inhibitors()
[elogind.git] / src / login / eloginctl.c
index 451b5b76f7db17c34d5a214471a50295248f7bd5..8adfb62e9574c7561bdf1fce7700719113675bca 100644 (file)
@@ -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",