aboutsummaryrefslogtreecommitdiff
path: root/loginutils/passwd.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 /loginutils/passwd.c
parent90d2bff4c67d65a4025451213d5028c539b7b91a (diff)
downloadbusybox-6f9a7783ce2f3ffae28176f8bcfcd6b86c1b41b3.tar.gz
Do not use getpass(3)
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r--loginutils/passwd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c
index 269e529f3..d0b2afc19 100644
--- a/loginutils/passwd.c
+++ b/loginutils/passwd.c
@@ -332,7 +332,7 @@ static int new_password(const struct passwd *pw, int amroot, int algo)
time_t start, now;
if (!amroot && crypt_passwd[0]) {
- if (!(clear = getpass("Old password:"))) {
+ if (!(clear = bb_askpass(0, "Old password:"))) {
/* return -1; */
return 1;
}
@@ -356,7 +356,7 @@ static int new_password(const struct passwd *pw, int amroot, int algo)
} else {
orig[0] = '\0';
}
- if (! (cp=getpass("Enter the new password (minimum of 5, maximum of 8 characters)\n"
+ if (! (cp=bb_askpass(0, "Enter the new password (minimum of 5, maximum of 8 characters)\n"
"Please use a combination of upper and lower case letters and numbers.\n"
"Enter new password: ")))
{
@@ -375,7 +375,7 @@ static int new_password(const struct passwd *pw, int amroot, int algo)
return 1;
}
}
- if (!(cp = getpass("Re-enter new password: "))) {
+ if (!(cp = bb_askpass(0, "Re-enter new password: "))) {
bzero(orig, sizeof orig);
/* return -1; */
return 1;