diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | grammar/grammar.y | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,6 @@ ---------------------------------------------------------------------------- Version 7.2.1 [v7-stable] 2012-10-?? +- bugfix: ruleset()-object did only support a single statement - added -D rsyslogd option to enable config parser debug mode - improved syntax error messages by outputting the error token - the rsyslog core now suspeneds actions after 10 failures in a row diff --git a/grammar/grammar.y b/grammar/grammar.y index 343daaaa..df673b71 100644 --- a/grammar/grammar.y +++ b/grammar/grammar.y @@ -131,7 +131,7 @@ obj: BEGINOBJ nvlst ENDOBJ { $$ = cnfobjNew($1, $2); } { $$ = cnfobjNew(CNFOBJ_TPL, $2); $$->subobjs = $5; } - | BEGIN_RULESET nvlst ENDOBJ '{' stmt '}' + | BEGIN_RULESET nvlst ENDOBJ '{' script '}' { $$ = cnfobjNew(CNFOBJ_RULESET, $2); $$->script = $5; } |