aboutsummaryrefslogtreecommitdiff
path: root/libbb/correct_password.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-05-01 01:27:30 +0000
committerEric Andersen <andersen@codepoet.org>2004-05-01 01:27:30 +0000
commit6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3 (patch)
treec8d14b02f851c42acde95b53c77527e5461c885b /libbb/correct_password.c
parent90d2bff4c67d65a4025451213d5028c539b7b91a (diff)
downloadbusybox-w32-6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3.tar.gz
busybox-w32-6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3.tar.bz2
busybox-w32-6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3.zip
Do not use getpass(3)
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 );