[systemd-devel] [PATCH] ask-password: Add --echo to enable echoing the user input

Zbigniew Jędrzejewski-Szmek zbyszek at in.waw.pl
Sun Oct 5 13:02:21 PDT 2014


On Fri, Oct 03, 2014 at 03:53:45PM +0200, David Sommerseth wrote:
> Programs such as OpenVPN may use ask-password for not only retrieving
> passwords, but also usernames.  Masking usernames with * seems just silly.
> 
>  v2 - Don't mess with termios flags, instead print the input
>       instead of an asterix.  Resolves issues with backspace
>       and TAB input.
> 
>  v3 - Renamed 'do_echo' variables and argument to 'echo'.  Also
>       modified the ask_password_{tty,agent,auto} API instead of
>       additional wrapper functions.
Hi,

I applied the patch, but without the change to ask_passowrd_auto(),
since that seemed unused.

Zbyszek


More information about the systemd-devel mailing list