]> granicus.if.org Git - sudo/commitdiff
Quoted commas were not being treated correctly in command line arguments.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2002 18:16:31 +0000 (18:16 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Tue, 15 Jan 2002 18:16:31 +0000 (18:16 +0000)
parse.lex

index bdb5b6745208cf945ff75020cc6e51edcb1e58fc..791cd42c6a2bb373f931ed6b792b7617c2e1a466 100644 (file)
--- a/parse.lex
+++ b/parse.lex
@@ -157,7 +157,7 @@ DEFVAR                      [a-z_]+
 }
 
 <GOTCMND>{
-    \\[:\,= \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;