fix that bug for real
This commit is contained in:
2
parse.c
2
parse.c
@@ -218,7 +218,7 @@ int command_matches(cmnd, user_args, path, sudoers_args)
|
||||
static char *c;
|
||||
|
||||
/* don't bother with pseudo commands like "validate" */
|
||||
if (*cmnd != '/' && *cmnd != '.')
|
||||
if (strchr(cmnd, '/') != NULL)
|
||||
return(FALSE);
|
||||
|
||||
/* only need to stat cmnd once since it never changes */
|
||||
|
Reference in New Issue
Block a user