summaryrefslogtreecommitdiff
path: root/src/timedate
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-07 21:06:44 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-07 21:06:44 +0100
commit46e65dcc3a522b5e992e165b5e61d14254026859 (patch)
tree84ea0d49f1c502972e8bfa85587cfbf9c875b586 /src/timedate
parent0d49cfa264e8afc52526cd0cd73b2309dff498b2 (diff)
polkit: don't spawn local client if we access a remote system
Diffstat (limited to 'src/timedate')
-rw-r--r--src/timedate/timedatectl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c
index 7ce9a824ec..54b39a1806 100644
--- a/src/timedate/timedatectl.c
+++ b/src/timedate/timedatectl.c
@@ -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();
}