Fix logic inversion when handing the authenticate Defaults option

for "sudo -l" and "sudo -v" in long list mode.
This commit is contained in:
Todd C. Miller
2018-05-16 12:14:14 -06:00
parent c30ad97107
commit 1494f25ba3

View File

@@ -80,7 +80,7 @@ sudoers_lookup_pseudo(struct sudo_nss_list *snl, struct passwd *pw,
continue;
TAILQ_FOREACH(def, &priv->defaults, entries) {
if (strcmp(def->var, "authenticate") == 0)
priv_nopass = def->op;
priv_nopass = !def->op;
}
TAILQ_FOREACH(cs, &priv->cmndlist, entries) {
if (pwcheck == any) {