The fix for bug #869 broke "sudo -v" when verifypw=all (the default)

This commit is contained in:
Todd C. Miller
2019-10-15 07:23:51 -06:00
parent 2512f6efbf
commit d494b81556

View File

@@ -62,7 +62,7 @@ sudoers_lookup_pseudo(struct sudo_nss_list *snl, struct passwd *pw,
debug_decl(sudoers_lookup_pseudo, SUDOERS_DEBUG_PARSER)
pwcheck = (pwflag == -1) ? never : sudo_defs_table[pwflag].sd_un.tuple;
nopass = (pwcheck == never) ? true : false;
nopass = (pwcheck == never || pwcheck == all) ? true : false;
if (list_pw == NULL)
SET(validated, FLAG_NO_CHECK);