svn commit: trunk/busybox/libbb

vapier at busybox.net vapier at busybox.net
Sat Jul 15 03:59:02 UTC 2006


Author: vapier
Date: 2006-07-14 20:59:00 -0700 (Fri, 14 Jul 2006)
New Revision: 15698

Log:
Tito writes: If the gecos field of an user is empty, obscure reports a false "similar to gecos" error.


Modified:
   trunk/busybox/libbb/obscure.c


Changeset:
Modified: trunk/busybox/libbb/obscure.c
===================================================================
--- trunk/busybox/libbb/obscure.c	2006-07-14 20:23:06 UTC (rev 15697)
+++ trunk/busybox/libbb/obscure.c	2006-07-15 03:59:00 UTC (rev 15698)
@@ -109,7 +109,7 @@
 		return "similar to username";
 	}
 	/* no gecos as-is, as sub-string, reversed, capitalized, doubled */
-	if (string_checker(new_p, pw->pw_gecos)) {
+	if (*pw->pw_gecos && string_checker(new_p, pw->pw_gecos)) {
 		return "similar to gecos";
 	}
 	/* hostname as-is, as sub-string, reversed, capitalized, doubled */




More information about the busybox-cvs mailing list