diff options
| author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-11 15:09:21 +0000 |
|---|---|---|
| committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-06-11 15:09:21 +0000 |
| commit | d71e45856eb0788024aa84d6bc594940f678bcd2 (patch) | |
| tree | db5138a5c529d9e944249fe0d045294f6182bb91 | |
| parent | a7c5d2c6d95b8e352845a2e7e7425ea6240f6389 (diff) | |
| download | busybox-w32-d71e45856eb0788024aa84d6bc594940f678bcd2.tar.gz busybox-w32-d71e45856eb0788024aa84d6bc594940f678bcd2.tar.bz2 busybox-w32-d71e45856eb0788024aa84d6bc594940f678bcd2.zip | |
- use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes.
| -rw-r--r-- | libbb/correct_password.c | 4 |
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, '*')) { |
