2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-30 22:05:46 +00:00

Accept quoted globbing characters and pass them verbatim for fnmatch()

This commit is contained in:
Todd C. Miller
2004-05-17 20:51:13 +00:00
parent f6f6c0b798
commit 53d91bcce6

View File

@@ -142,7 +142,15 @@ DEFVAR [a-z_]+
}
<GOTCMND>{
\\[\*\?\[\]\!] {
/* 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;