From: Todd C. Miller Date: Thu, 13 Dec 2001 02:24:40 +0000 (+0000) Subject: '\\' is a perfectly legal character to have in a command line argument. X-Git-Tag: SUDO_1_6_4~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f97a5e44f06a269cdbf9dc54a4a6266acc848d3;p=sudo '\\' is a perfectly legal character to have in a command line argument. --- diff --git a/parse.lex b/parse.lex index 3a39714e7..627636002 100644 --- a/parse.lex +++ b/parse.lex @@ -143,7 +143,7 @@ DEFVAR [a-z_]+ } { - \\[:\,=\\ \t#] { + \\[:\,= \t#] { LEXTRACE("QUOTEDCHAR "); fill_args(yytext + 1, 1, sawspace); sawspace = FALSE; @@ -155,7 +155,7 @@ DEFVAR [a-z_]+ return(COMMAND); } /* end of command line args */ - [^\\:, \t\n]+ { + [^:, \t\n]+ { LEXTRACE("ARG "); fill_args(yytext, yyleng, sawspace); sawspace = FALSE;