be true even if all the user's entries had the NOPASSWD tag.
Regression introduce in sudo 1.8.17. Bug #762
char *iolog_path = NULL;
mode_t cmnd_umask = ACCESSPERMS;
struct sudo_nss *nss;
- bool nopass = false;
+ int nopass = -1;
int cmnd_status = -1, oldlocale, validated;
int ret = -1;
debug_decl(sudoers_policy_main, SUDOERS_DEBUG_PLUGIN)
case all:
if (!ISSET(validated, FLAG_NOPASSWD))
nopass = false;
+ else if (nopass == -1)
+ nopass = true;
break;
case any:
if (ISSET(validated, FLAG_NOPASSWD))
break;
}
}
- if (pwflag && nopass)
+ if (pwflag && nopass == true)
def_authenticate = false;
/* Restore user's locale. */