From 715554e7b2171d263274f29407c16215e50f7c0a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Feb 2011 01:09:09 +0100 Subject: [PATCH] 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 66903aba..8527cd1a 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 -- 2.39.5