mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
fix that bug for real
This commit is contained in:
parent
46a2f512fd
commit
6a2b6895f4
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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user