aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-15 08:30:33 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-06-15 08:30:33 +0000
commit867266059b98ba56e2bfac45bf51e0f99b5d886d (patch)
treed7ed1e06cb83a252f59c04878d7f294f13116350 /libbb
parent432d69cb41be34586eb2c26b65618f7d024a7ef7 (diff)
downloadbusybox-w32-867266059b98ba56e2bfac45bf51e0f99b5d886d.tar.gz
busybox-w32-867266059b98ba56e2bfac45bf51e0f99b5d886d.tar.bz2
busybox-w32-867266059b98ba56e2bfac45bf51e0f99b5d886d.zip
- vda perfers not to use the banner
Diffstat (limited to 'libbb')
-rw-r--r--libbb/correct_password.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libbb/correct_password.c b/libbb/correct_password.c
index d0f68c0cd..7affc97ee 100644
--- a/libbb/correct_password.c
+++ b/libbb/correct_password.c
@@ -49,10 +49,9 @@ int correct_password(const struct passwd *pw)
49 49
50 /* fake salt. crypt() can choke otherwise. 50 /* fake salt. crypt() can choke otherwise.
51 * (bb_banner's first two chars are letters and thus are valid salt) */ 51 * (bb_banner's first two chars are letters and thus are valid salt) */
52 correct = bb_banner; 52 correct = "aa";
53 if (!pw) { 53 if (!pw) {
54 /* bb_banner will never match, it contains () which is never 54 /* "aa" will never match */
55 * generated in valid encrypted passwords. */
56 goto fake_it; 55 goto fake_it;
57 } 56 }
58 correct = pw->pw_passwd; 57 correct = pw->pw_passwd;