- add a few basic tests for pidof(8)
[oweals/busybox.git] / libbb / correct_password.c
index 1da83c4413b01d21cc6aa1d095854dacfccf2448..570aa7e86fca02d7323da1b2903c1ccce54446b4 100644 (file)
@@ -66,10 +66,9 @@ 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 );
                return 0;
        }
        encrypted = crypt ( unencrypted, correct );