chiark / gitweb /
polkit: don't spawn local client if we access a remote system
[elogind.git] / src / locale / localectl.c
index e8bf5105703822bb35a53c389dfaf73b628c8e01..748a14841d1449b08d00a99aa08525a24623799f 100644 (file)
@@ -63,6 +63,9 @@ static void polkit_agent_open_if_enabled(void) {
         if (!arg_ask_password)
                 return;
 
+        if (arg_transport != BUS_TRANSPORT_LOCAL)
+                return;
+
         polkit_agent_open();
 }