From: Philip Withnall Date: Thu, 21 May 2026 10:40:19 +0000 (+0100) Subject: updatectl: Apply --no-ask-password argument to polkit agent X-Git-Tag: v261-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d1dd4ddb6556242e4abd81dbbd790ca7e76a6d;p=thirdparty%2Fsystemd.git updatectl: Apply --no-ask-password argument to polkit agent Accidentally missed out of commit 8c0f9073c7da808461acfc016cc291e4aba9c1a2. Signed-off-by: Philip Withnall Fixes: 8c0f9073c7da808461acfc016cc291e4aba9c1a2 --- diff --git a/src/sysupdate/updatectl.c b/src/sysupdate/updatectl.c index bafc41c6ae0..cd41aeb9007 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);