From b6d1dd4ddb6556242e4abd81dbbd790ca7e76a6d Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 21 May 2026 11:40:19 +0100 Subject: [PATCH] updatectl: Apply --no-ask-password argument to polkit agent Accidentally missed out of commit 8c0f9073c7da808461acfc016cc291e4aba9c1a2. Signed-off-by: Philip Withnall Fixes: 8c0f9073c7da808461acfc016cc291e4aba9c1a2 --- src/sysupdate/updatectl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sysupdate/updatectl.c b/src/sysupdate/updatectl.c index bafc41c6ae..cd41aeb900 100644 --- a/src/sysupdate/updatectl.c +++ b/src/sysupdate/updatectl.c @@ -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);