svn commit: trunk/busybox/libbb

aldot at busybox.net aldot at busybox.net
Mon Jun 11 15:09:22 UTC 2007


Author: aldot
Date: 2007-06-11 08:09:21 -0700 (Mon, 11 Jun 2007)
New Revision: 18795

Log:
- use bb_msg_full_version instead of a separate string. Saves a minor 3 bytes.


Modified:
   trunk/busybox/libbb/correct_password.c


Changeset:
Modified: trunk/busybox/libbb/correct_password.c
===================================================================
--- trunk/busybox/libbb/correct_password.c	2007-06-10 19:29:37 UTC (rev 18794)
+++ trunk/busybox/libbb/correct_password.c	2007-06-11 15:09:21 UTC (rev 18795)
@@ -47,9 +47,9 @@
 	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, '*')) {




More information about the busybox-cvs mailing list