fix that bug for real

This commit is contained in:
Todd C. Miller
1998-01-13 15:19:08 +00:00
parent 46a2f512fd
commit 6a2b6895f4

View File

@@ -218,7 +218,7 @@ int command_matches(cmnd, user_args, path, sudoers_args)
static char *c; static char *c;
/* don't bother with pseudo commands like "validate" */ /* don't bother with pseudo commands like "validate" */
if (*cmnd != '/' && *cmnd != '.') if (strchr(cmnd, '/') != NULL)
return(FALSE); return(FALSE);
/* only need to stat cmnd once since it never changes */ /* only need to stat cmnd once since it never changes */