aboutsummaryrefslogtreecommitdiff
path: root/libbb/correct_password.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/correct_password.c')
-rw-r--r--libbb/correct_password.c4
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 )
66 if ( correct == 0 || correct[0] == '\0' ) 66 if ( correct == 0 || correct[0] == '\0' )
67 return 1; 67 return 1;
68 68
69 unencrypted = getpass ( "Password: " ); 69 unencrypted = bb_askpass ( 0, "Password: " );
70 if ( !unencrypted ) 70 if ( !unencrypted )
71 { 71 {
72 fputs ( "getpass: cannot open /dev/tty\n", stderr ); 72 fputs ( "cannot open /dev/tty\n", stderr );
73 return 0; 73 return 0;
74 } 74 }
75 encrypted = crypt ( unencrypted, correct ); 75 encrypted = crypt ( unencrypted, correct );