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://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=715554e7b2171d263274f29407c16215e50f7c0a systemctl: don't start agent for --user --- diff --git a/src/systemctl.c b/src/systemctl.c index 66903aba2..8527cd1aa 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