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 66903aba28a5a1c276e081fa65a9a713be0e93ea..8527cd1aa00f2cf1064c0378c59cef4e9ddf1263 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