Skip to content

Commit

Permalink
console_systemd: remove the timeout when using 'systemd-ask-password'
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-By: David Sommerseth <[email protected]>
Message-Id: <[email protected]>
URL: https://www.mail-archive.com/[email protected]/msg30336.html
Signed-off-by: Gert Doering <[email protected]>
(cherry picked from commit 8084990)
  • Loading branch information
mathstuf authored and cron2 committed Jan 14, 2025
1 parent de127bd commit f67bd15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/openvpn/console_systemd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f67bd15

Please sign in to comment.