diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-07-01 18:00:20 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-07-01 18:00:20 +0000 |
commit | a7599402b2e4d8c5cef1da9fe12159640fd15812 (patch) | |
tree | d4550fd34a742393bcc50425d8fca151d2d451af | |
parent | 8dc48b649e2e0b8781a05d47a39c59713e5a1d33 (diff) | |
download | fetchmail-a7599402b2e4d8c5cef1da9fe12159640fd15812.tar.gz fetchmail-a7599402b2e4d8c5cef1da9fe12159640fd15812.tar.bz2 fetchmail-a7599402b2e4d8c5cef1da9fe12159640fd15812.zip |
Fix a lexical-analyzer bug.
svn path=/trunk/; revision=23
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | rcfile_l.l | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in index 8e94625a..2581b953 100644 --- a/Makefile.in +++ b/Makefile.in @@ -11,7 +11,7 @@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ LEXFLAGS= YACC = @YACC@ -YACCFLAGS=-d +YACCFLAGS = -dt # How to invoke ranlib. This is only used by the `glob' subdirectory. RANLIB = @RANLIB@ @@ -2,6 +2,8 @@ 3.01: +* Fixed a lexical analyzer bug in quoted-string processing. + * Fixed a bug in dump_options that cauded username to be displayed incorrectly. * The lock assertion code was in the wrong place relative to the daemonize() @@ -49,12 +49,12 @@ nofetchall { yylval.flag = -1; return KW_FETCHALL; } (#.*)?\n { prc_lineno++; return KW_EOL; } -[^ \t\r\n#]+ { yylval.sval = (char *) strdup(yytext); return PARAM_STRING; } -\"[^\"]*\"` { +\"[^\"]*\" { yytext[strlen(yytext)-1] = '\0'; yylval.sval = (char *) strdup(yytext+1); return PARAM_STRING; } +[^ \t\r\n#]+ { yylval.sval = (char *) strdup(yytext); return PARAM_STRING; } [ \t\r]+ ; /* whitespace */ |