chiark / gitweb /
ask-password: Add --echo to enable echoing the user input
authorDavid Sommerseth <davids@redhat.com>
Fri, 3 Oct 2014 13:53:45 +0000 (15:53 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 5 Oct 2014 19:29:41 +0000 (15:29 -0400)
commit64845bdc829d6a6179d0762b7e97ef23828562a3
tree639cc68e573d665a61a45836d1793ac2eb96932c
parent75a0da952f603006d6b3535ecaf8ebe2bded30e7
ask-password: Add --echo to enable echoing the user input

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.

[zj: undo changes to ask_password_auto, since no callers were using
     the new argument.]
man/systemd-ask-password.xml
src/ask-password/ask-password.c
src/firstboot/firstboot.c
src/shared/ask-password-api.c
src/shared/ask-password-api.h
src/tty-ask-password-agent/tty-ask-password-agent.c