mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
busybox: prevent weak root passwords
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
--- a/loginutils/passwd.c
|
||||
+++ b/loginutils/passwd.c
|
||||
@@ -72,7 +72,6 @@ static char* new_password(const struct p
|
||||
newp = xstrdup(newp); /* we are going to bb_ask_stdin() again, so save it */
|
||||
if (ENABLE_FEATURE_PASSWD_WEAK_CHECK
|
||||
&& obscure(orig, newp, pw)
|
||||
- && myuid != 0
|
||||
) {
|
||||
goto err_ret; /* non-root is not allowed to have weak passwd */
|
||||
}
|
||||
Reference in New Issue
Block a user