chiark / gitweb /
systemctl: don't start agent for --user
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2011 00:09:09 +0000 (01:09 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2011 00:09:09 +0000 (01:09 +0100)
src/systemctl.c

index 66903ab..8527cd1 100644 (file)
@@ -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