From: Lennart Poettering Date: Wed, 9 Feb 2011 00:09:09 +0000 (+0100) Subject: systemctl: don't start agent for --user X-Git-Tag: v18~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=715554e7b2171d263274f29407c16215e50f7c0a;p=thirdparty%2Fsystemd.git systemctl: don't start agent for --user --- diff --git a/src/systemctl.c b/src/systemctl.c index 66903aba28a..8527cd1aa00 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