chiark / gitweb /
polkit: don't spawn local client if we access a remote system
[elogind.git] / src / timedate / timedatectl.c
index 7ce9a824ece1944190c8d17090a622c431bdf2c6..54b39a1806f4775dff15d6835f003d3a7e5ba84f 100644 (file)
@@ -58,6 +58,9 @@ static void polkit_agent_open_if_enabled(void) {
         if (!arg_ask_password)
                 return;
 
+        if (arg_transport != BUS_TRANSPORT_LOCAL)
+                return;
+
         polkit_agent_open();
 }