From: Todd C. Miller Date: Mon, 17 May 2004 20:51:13 +0000 (+0000) Subject: Accept quoted globbing characters and pass them verbatim for fnmatch() X-Git-Tag: SUDO_1_6_8~134 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=53d91bcce6e54e26160488c68e2ffa0c22291ad0;p=sudo Accept quoted globbing characters and pass them verbatim for fnmatch() --- diff --git a/parse.lex b/parse.lex index 713cbce16..4b73836fd 100644 --- a/parse.lex +++ b/parse.lex @@ -142,7 +142,15 @@ DEFVAR [a-z_]+ } { + \\[\*\?\[\]\!] { + /* quoted fnmatch glob char, pass verbatim */ + LEXTRACE("QUOTEDCHAR "); + fill_args(yytext, 2, sawspace); + sawspace = FALSE; + } + \\[:\\,= \t#] { + /* quoted sudoers special char, strip backslash */ LEXTRACE("QUOTEDCHAR "); fill_args(yytext + 1, 1, sawspace); sawspace = FALSE;