From f67bd153a18192e0a8ed9b57738d8589f26369e3 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 31 Dec 2024 21:46:29 +0100 Subject: [PATCH] console_systemd: remove the timeout when using 'systemd-ask-password' Without this, the password request will expire after 90 seconds leaving no way to provide the password without OpenVPN asking for it again. Given that interactive use will wait for input without a timeout, it makes sense to have non-interactive usage also wait until the user is ready instead of forcing users to race against the timeout. Change-Id: I2791d09ab698d89dc7e0183151f77b84024ad6d1 Signed-off-by: Ben Boeckel Acked-By: David Sommerseth Message-Id: <20241231204629.1210040-2-ben.boeckel@kitware.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30336.html Signed-off-by: Gert Doering (cherry picked from commit 8084990ccecbf803498419e553bc1a6f073f8175) --- src/openvpn/console_systemd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openvpn/console_systemd.c b/src/openvpn/console_systemd.c index c7cf1adad..2247bb092 100644 --- a/src/openvpn/console_systemd.c +++ b/src/openvpn/console_systemd.c @@ -71,6 +71,7 @@ get_console_input_systemd(const char *prompt, const bool echo, char *input, cons } #endif argv_printf_cat(&argv, "--icon network-vpn"); + argv_printf_cat(&argv, "--timeout=0"); argv_printf_cat(&argv, "%s", prompt); if ((std_out = openvpn_popen(&argv, NULL)) < 0) -- 2.47.3