mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
Merge pull request #2300 from chewitt/busybox
busybox: prevent weak root passwords
This commit is contained in:
commit
8fcf7b5cb2
@ -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 */
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user