summaryrefslogtreecommitdiff
path: root/src/systemctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-09 01:09:09 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-09 01:09:09 +0100
commit715554e7b2171d263274f29407c16215e50f7c0a (patch)
tree38f088d4bcddb867fd86f687dc5ba8ed9f4ab524 /src/systemctl.c
parent7f6d613516020bf390d8de25bbbb2551ea8dade0 (diff)
systemctl: don't start agent for --user
Diffstat (limited to 'src/systemctl.c')
-rw-r--r--src/systemctl.c3
1 files changed, 3 insertions, 0 deletions
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