Fix oss-fuzz flaky issue

Caused by password file with many duplicate usernames, unlikely to occur
in practice
This commit is contained in:
Roger A. Light
2025-08-22 11:09:39 +01:00
parent e498168781
commit 15c5dafb5b
+1 -1
View File
@@ -285,7 +285,7 @@ static int update_pwuser_cb(FILE *fptr, FILE *ftmp, const char *username, const
UNUSED(fptr);
UNUSED(password);
if(strcmp(username, helper->username)){
if(helper->found || strcmp(username, helper->username)){
/* If this isn't the matching user, then writing out the exiting line */
fprintf(ftmp, "%s", line);
}else{