Do not use getpass(3)

This commit is contained in:
Eric Andersen
2004-05-01 01:27:30 +00:00
parent 90d2bff4c6
commit 6f9a7783ce
7 changed files with 98 additions and 38 deletions

View File

@ -66,10 +66,10 @@ int correct_password ( const struct passwd *pw )
if ( correct == 0 || correct[0] == '\0' )
return 1;
unencrypted = getpass ( "Password: " );
unencrypted = bb_askpass ( 0, "Password: " );
if ( !unencrypted )
{
fputs ( "getpass: cannot open /dev/tty\n", stderr );
fputs ( "cannot open /dev/tty\n", stderr );
return 0;
}
encrypted = crypt ( unencrypted, correct );