mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 22:35:10 +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>{
|
<GOTCMND>{
|
||||||
|
\\[\*\?\[\]\!] {
|
||||||
|
/* quoted fnmatch glob char, pass verbatim */
|
||||||
|
LEXTRACE("QUOTEDCHAR ");
|
||||||
|
fill_args(yytext, 2, sawspace);
|
||||||
|
sawspace = FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
\\[:\\,= \t#] {
|
\\[:\\,= \t#] {
|
||||||
|
/* quoted sudoers special char, strip backslash */
|
||||||
LEXTRACE("QUOTEDCHAR ");
|
LEXTRACE("QUOTEDCHAR ");
|
||||||
fill_args(yytext + 1, 1, sawspace);
|
fill_args(yytext + 1, 1, sawspace);
|
||||||
sawspace = FALSE;
|
sawspace = FALSE;
|
||||||
|
Reference in New Issue
Block a user