updatectl: Apply --no-ask-password argument to polkit agent

Accidentally missed out of commit
8c0f9073c7.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Fixes: 8c0f9073c7
This commit is contained in:
Philip Withnall
2026-05-21 14:54:36 +02:00
committed by Lennart Poettering
parent 705a705e85
commit b6d1dd4ddb
+1 -2
View File
@@ -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);