New upstream version 4.17.0

This commit is contained in:
Chris Hofstaedtler
2024-12-28 13:12:23 +01:00
parent f78a468368
commit c2a3ebed18
423 changed files with 1574 additions and 1181 deletions
+3 -3
View File
@@ -42,8 +42,8 @@ bool valid (const char *password, const struct passwd *ent)
* routine is meant to waste CPU time.
*/
if ((NULL != ent->pw_name) && ('\0' == ent->pw_passwd[0])) {
if ('\0' == password[0]) {
if ((NULL != ent->pw_name) && streq(ent->pw_passwd, "")) {
if (streq(password, "")) {
return true; /* user entered nothing */
} else {
return false; /* user entered something! */
@@ -54,7 +54,7 @@ bool valid (const char *password, const struct passwd *ent)
* If there is no entry then we need a salt to use.
*/
if ((NULL == ent->pw_name) || ('\0' == ent->pw_passwd[0])) {
if ((NULL == ent->pw_name) || streq(ent->pw_passwd, "")) {
salt = "xx";
} else {
salt = ent->pw_passwd;