From d71e45856eb0788024aa84d6bc594940f678bcd2 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 11 Jun 2007 15:09:21 +0000 Subject: - use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes. --- libbb/correct_password.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbb/correct_password.c') 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) char buffer[256]; #endif - correct = "aa"; /* fake salt. crypt() can choke otherwise */ + correct = bb_msg_full_version; /* fake salt. crypt() can choke otherwise */ if (!pw) - goto fake_it; /* "aa" will never match */ + goto fake_it; /* The content of 'correct' will never match */ correct = pw->pw_passwd; #if ENABLE_FEATURE_SHADOWPASSWDS if (LONE_CHAR(pw->pw_passwd, 'x') || LONE_CHAR(pw->pw_passwd, '*')) { -- cgit v1.2.3