From: Todd C. Miller Date: Tue, 13 Jan 1998 15:19:08 +0000 (+0000) Subject: fix that bug for real X-Git-Tag: SUDO_1_5_6~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6a2b6895f4882b07409d7e404966e14db1326de5;p=sudo fix that bug for real --- diff --git a/parse.c b/parse.c index 448f9e57b..1c3ce614a 100644 --- a/parse.c +++ b/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 */