diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-09 01:09:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-09 01:09:09 +0100 |
commit | 715554e7b2171d263274f29407c16215e50f7c0a (patch) | |
tree | 38f088d4bcddb867fd86f687dc5ba8ed9f4ab524 /src | |
parent | 7f6d613516020bf390d8de25bbbb2551ea8dade0 (diff) |
systemctl: don't start agent for --user
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl.c | 3 |
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 |