← Commit list

1f17d3287

"Vladimir N. Oleynik"
"Vladimir N. Oleynik"
2006-01-31
SOURCE BUG Duration: 2s

Subject

more obscure

SOURCE BUG

This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)

→ Bu hatanin tam hikayesini ve duzeltme diffini gor

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Debian 14.2.0-19) 14.2.0

—

Build Log

(log yok)

Commit Diff GitHub →

libbb/obscure.c+4 -1
@@ -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))
@@ -186,7 +189,7 @@ obscure_msg(const char *old, const char *newval, const struct passwd *pwdp)
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;