2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-29 13:28:10 +00:00

Do not short circuit pseudo commands when we get a match since, depending

on the settings, we may need to examine all commands for tags.
This commit is contained in:
Todd C. Miller 2008-12-08 15:02:07 +00:00
parent d488f2a034
commit 96f1ea4701

View File

@ -192,12 +192,9 @@ sudo_file_lookup(nss, validated, pwflag)
if ((pwcheck == any && nopass != TRUE) ||
(pwcheck == all && nopass != FALSE))
nopass = cs->tags.nopasswd;
if (match == ALLOW)
goto matched_pseudo;
}
}
}
matched_pseudo:
if (match == ALLOW || user_uid == 0) {
/* User has an entry for this host. */
SET(validated, VALIDATE_OK);