shared/ask-password-api: do not show hint on echo
authorChristian Hesse <mail@eworm.de>
Wed, 11 Mar 2020 19:39:07 +0000 (20:39 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 13 Mar 2020 07:27:03 +0000 (08:27 +0100)
commit20a7592edf5feacc25ef6bb80f667883d6f557e7
tree847a39d23edfb2e64700ffe4d678fc339e184b5a
parent084df9c616fdfbcbf3d7fbe7dc6b975f1fa359d2
shared/ask-password-api: do not show hint on echo

Giving --echo to systemd-ask-password allows to echo the user input instead
of masking it. This is useful when querying for usernames or similar.

Showing "(press TAB for no echo)" does not make sense there, so do not.
Note that pressing TAB or ESC still disables echo.

(cherry picked from commit ddee0e815ed5500722019bcb807957ea6846212d)
src/shared/ask-password-api.c