client: Drop use of getpass()

getpass() is traditional Unix, but has been withdrawn from POSIX.  We
still use it when it's available, and fall back to portable code only
when it's not.

The portable code behaves differently: it reads stdin instead of
/dev/tty, and in noncanonical mode.

Simplify things: always use the replacement.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-12-27 11:57:54 +01:00
parent 54b1e7e167
commit 8e00a61812
3 changed files with 4 additions and 14 deletions

View file

@ -27,7 +27,7 @@
# configure.ac: Autoconf input file
#
# Known contributors to this file:
# Markus Armbruster, 2005-2016
# Markus Armbruster, 2005-2020
#
# Process this file with autoconf to produce a configure script.
@ -167,7 +167,7 @@ main(int argc, char *argv[])
### Checks for library functions
AC_CHECK_FUNCS(getaddrinfo getpass)
AC_CHECK_FUNCS(getaddrinfo)
MY_FUNC_MAKECONTEXT