updatectl: Apply --no-ask-password argument to polkit agent
Accidentally missed out of commit8c0f9073c7. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Fixes:8c0f9073c7
This commit is contained in:
committed by
Lennart Poettering
parent
705a705e85
commit
b6d1dd4ddb
@@ -1757,8 +1757,7 @@ static int run(int argc, char *argv[]) {
|
||||
if (r < 0)
|
||||
return bus_log_connect_error(r, arg_transport, RUNTIME_SCOPE_SYSTEM);
|
||||
|
||||
if (arg_transport == BUS_TRANSPORT_LOCAL)
|
||||
polkit_agent_open();
|
||||
(void) polkit_agent_open_if_enabled(arg_transport, arg_ask_password);
|
||||
|
||||
(void) sd_bus_set_allow_interactive_authorization(bus, arg_ask_password);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user