2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

Add VALIDATE_NOT_OK_NOPASS for when user is not allowed to run a command

but the NOPASSWD flag was set.
Make runasspec, runaslist, runasuser, and nopasswd typeless in parse.yacc
Add support for '!' in the runas list
Fix double printing of '%' and '+' for groups and netgroups respectively
Add *_matched macros (no need for local stack variable).  Should only be
used directly after a pop (since top must be >= 2).
This commit is contained in:
Todd C. Miller
1999-04-06 05:00:29 +00:00
parent 9284e417ca
commit 499e869237
6 changed files with 304 additions and 266 deletions

1
sudo.c
View File

@@ -375,6 +375,7 @@ int main(argc, argv)
case VALIDATE_NOT_OK:
check_user();
case VALIDATE_NOT_OK_NOPASS:
#ifndef DONT_LEAK_PATH_INFO
log_error(rtn);
if (cmnd_status == NOT_FOUND_DOT)