diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-05-01 01:27:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-05-01 01:27:30 +0000 |
commit | 6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3 (patch) | |
tree | c8d14b02f851c42acde95b53c77527e5461c885b /libbb/correct_password.c | |
parent | 90d2bff4c67d65a4025451213d5028c539b7b91a (diff) | |
download | busybox-6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3.tar.gz |
Do not use getpass(3)
Diffstat (limited to 'libbb/correct_password.c')
-rw-r--r-- | libbb/correct_password.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c index 1da83c441..e3ff44689 100644 --- a/libbb/correct_password.c +++ b/libbb/correct_password.c @@ -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 ); |