From: Todd C. Miller Date: Tue, 15 Jan 2002 18:16:31 +0000 (+0000) Subject: Quoted commas were not being treated correctly in command line arguments. X-Git-Tag: SUDO_1_6_5~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=08b394dc393a707a7d46d3cc7dd725e6e66e29cc;p=sudo Quoted commas were not being treated correctly in command line arguments. --- diff --git a/parse.lex b/parse.lex index bdb5b6745..791cd42c6 100644 --- a/parse.lex +++ b/parse.lex @@ -157,7 +157,7 @@ DEFVAR [a-z_]+ } { - \\[:\,= \t#] { + \\[:\\,= \t#] { LEXTRACE("QUOTEDCHAR "); fill_args(yytext + 1, 1, sawspace); sawspace = FALSE; @@ -169,7 +169,7 @@ DEFVAR [a-z_]+ return(COMMAND); } /* end of command line args */ - [^:, \t\n]+ { + [^\\:, \t\n]+ { LEXTRACE("ARG "); fill_args(yytext, yyleng, sawspace); sawspace = FALSE;