chiark / gitweb /
systemctl: don't start agent for --user
[elogind.git] / 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