Fix listpw=never and verifypw=never. Bug #869

This commit is contained in:
Todd C. Miller
2019-01-22 06:41:16 -07:00
parent 985600e7f0
commit ecc9c366e4

View File

@@ -60,7 +60,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 == all) ? true : false;
nopass = (pwcheck == never) ? true : false;
if (list_pw == NULL)
SET(validated, FLAG_NO_CHECK);