tar: support -T - and -X -
[oweals/busybox.git] / libbb / correct_password.c
index f47642fd5a8ff8a2ab0cafc70ef13c38353a5e20..6301589e6ae2ba227d138fb3fff27ea025c5c5b9 100644 (file)
@@ -36,7 +36,7 @@
  *
  * NULL pw means "just fake it for login with bad username" */
 
-int correct_password(const struct passwd *pw)
+int FAST_FUNC correct_password(const struct passwd *pw)
 {
        char *unencrypted, *encrypted;
        const char *correct;
@@ -68,7 +68,7 @@ int correct_password(const struct passwd *pw)
                return 1;
 
  fake_it:
-       unencrypted = bb_askpass(0, "Password: ");
+       unencrypted = bb_ask_stdin("Password: ");
        if (!unencrypted) {
                return 0;
        }