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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user