svn commit: trunk/busybox/libbb

vodz at busybox.net vodz at busybox.net
Tue Jan 31 12:36:53 UTC 2006


Author: vodz
Date: 2006-01-31 04:36:51 -0800 (Tue, 31 Jan 2006)
New Revision: 13758

Log:
more obscure

Modified:
   trunk/busybox/libbb/obscure.c


Changeset:
Modified: trunk/busybox/libbb/obscure.c
===================================================================
--- trunk/busybox/libbb/obscure.c	2006-01-31 12:12:15 UTC (rev 13757)
+++ trunk/busybox/libbb/obscure.c	2006-01-31 12:36:51 UTC (rev 13758)
@@ -162,6 +162,9 @@
 	else if (similiar(wrapped, newmono))
 		msg = "too similiar";
 
+	else if ( strstr(newval, pwdp->pw_name) )
+		msg = "don't use something like your username as password";
+
 	else {
 		safe_strncpy(wrapped + lenwrap, wrapped, lenwrap + 1);
 		if (strstr(wrapped, newmono))
@@ -186,7 +189,7 @@
 	oldlen = strlen(old);
 	newlen = strlen(newval);
 
-#if 0							/* why not check the password when set for the first time?  --marekm */
+#if 0  /* why not check the password when set for the first time?  --marekm */
 	if (old[0] == '\0')
 		/* return (1); */
 		return NULL;




More information about the busybox-cvs mailing list