projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c59e2ec
)
machinectl: spawn ask password agent on "start"
author
Lennart Poettering
<lennart@poettering.net>
Fri, 15 Nov 2019 10:12:34 +0000
(11:12 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 15 Nov 2019 10:12:34 +0000
(11:12 +0100)
We start units in the background, hence it is wise to also have the
ask pasword agent around.
Fixes: #13587
src/machine/machinectl.c
patch
|
blob
|
history
diff --git
a/src/machine/machinectl.c
b/src/machine/machinectl.c
index
6dbdba1
..
afb8985
100644
(file)
--- a/
src/machine/machinectl.c
+++ b/
src/machine/machinectl.c
@@
-46,6
+46,7
@@
#include "sigbus.h"
#include "signal-util.h"
#include "sort-util.h"
+#include "spawn-ask-password-agent.h"
#include "spawn-polkit-agent.h"
#include "stdio-util.h"
#include "string-table.h"
@@
-1722,6
+1723,7
@@
static int start_machine(int argc, char *argv[], void *userdata) {
assert(bus);
polkit_agent_open_if_enabled(arg_transport, arg_ask_password);
+ ask_password_agent_open_if_enabled(arg_transport, arg_ask_password);
r = bus_wait_for_jobs_new(bus, &w);
if (r < 0)