X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Ftimedate%2Ftimedatectl.c;h=54b39a1806f4775dff15d6835f003d3a7e5ba84f;hb=46e65dcc3a522b5e992e165b5e61d14254026859;hp=7ce9a824ece1944190c8d17090a622c431bdf2c6;hpb=0d49cfa264e8afc52526cd0cd73b2309dff498b2;p=elogind.git diff --git a/src/timedate/timedatectl.c b/src/timedate/timedatectl.c index 7ce9a824e..54b39a180 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(); }