chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: don't start agent for --user
[elogind.git]
/
src
/
systemctl.c
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 66903aba28a5a1c276e081fa65a9a713be0e93ea..8527cd1aa00f2cf1064c0378c59cef4e9ddf1263 100644
(file)
--- 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