From 715554e7b2171d263274f29407c16215e50f7c0a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Feb 2011 01:09:09 +0100 Subject: systemctl: don't start agent for --user --- src/systemctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/systemctl.c b/src/systemctl.c index 66903aba28..8527cd1aa0 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -141,6 +141,9 @@ static void spawn_ask_password_agent(void) { if (!arg_ask_password) return; + if (arg_user) + return; + parent = getpid(); /* Spawns a temporary TTY agent, making sure it goes away when -- cgit v1.2.3-54-g00ecf