From 53d91bcce6e54e26160488c68e2ffa0c22291ad0 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 17 May 2004 20:51:13 +0000 Subject: [PATCH] Accept quoted globbing characters and pass them verbatim for fnmatch() --- parse.lex | 8 ++++++++ 1 file changed, 8 insertions(+) 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; -- 2.40.0