Menu

#62 Syntax Error

0.13
closed
nobody
5
2018-06-10
2006-12-21
Anonymous
No

I've download, compiled, and installed both 0.13.1 and today's snapshot. Then I created a very simple aide.conf with one line "/etc p". When I try to initialize the db (aide --init) I'm getting a syntax error, so I set YYDEBUG and YYERROR_VERBOSE and get

0:syntax error: unexpected $undefined, expecting TNEWLINE or TEOF or '+' or '-':
0:Error while reading configuration:
Configuration error

After playing around, the only thing I've come up with is something in conf_lex.l other than "<EXPR>[\ \t]*\n" is eating the newline.

I've upgrade my bison and flex to the latest and still the same thing happens.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Setting flex -d shows \n being accepted at line 375 of conf_lex.l (a line with no start condition). Moving EXPR to a exclusive start condition "%x EXPR" seems to fix the syntax error.

     
  • Hannes von Haugwitz

    • status: open --> closed-fixed
    • Group: --> 0.13
     
  • Hannes von Haugwitz

    This issue is not reproducible with AIDE 0.16. Hence I close this bug report.

     
  • Hannes von Haugwitz

    • status: closed-fixed --> closed
     

Log in to post a comment.