more obscure

This commit is contained in:
"Vladimir N. Oleynik" 2006-01-31 12:36:51 +00:00
parent 7600eec732
commit 1f17d3287a

View File

@ -162,6 +162,9 @@ password_check(const char *old, const char *newval, const struct passwd *pwdp)
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))