aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 af6ff076d..6255f7e65 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -47,9 +47,9 @@ int correct_password(const struct passwd *pw)
47 char buffer[256]; 47 char buffer[256];
48#endif 48#endif
49 49
50 correct = "aa"; /* fake salt. crypt() can choke otherwise */ 50 correct = bb_msg_full_version; /* fake salt. crypt() can choke otherwise */
51 if (!pw) 51 if (!pw)
52 goto fake_it; /* "aa" will never match */ 52 goto fake_it; /* The content of 'correct' will never match */
53 correct = pw->pw_passwd; 53 correct = pw->pw_passwd;
54#if ENABLE_FEATURE_SHADOWPASSWDS 54#if ENABLE_FEATURE_SHADOWPASSWDS
55 if (LONE_CHAR(pw->pw_passwd, 'x') || LONE_CHAR(pw->pw_passwd, '*')) { 55 if (LONE_CHAR(pw->pw_passwd, 'x') || LONE_CHAR(pw->pw_passwd, '*')) {