diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 12:14:55 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-10-11 12:14:55 +0200 |
commit | d91e8c31a1e342eb15b0839b9e721730fcad0549 (patch) | |
tree | 50f9e0778810a157289777511077f6277947cb91 /grammar | |
parent | ee1afa2f3607ce6a1b278ce0a8d051aa040a362b (diff) | |
download | rsyslog-d91e8c31a1e342eb15b0839b9e721730fcad0549.tar.gz rsyslog-d91e8c31a1e342eb15b0839b9e721730fcad0549.tar.xz rsyslog-d91e8c31a1e342eb15b0839b9e721730fcad0549.zip |
bugfix: some config processing warning messages were treated as errors
Diffstat (limited to 'grammar')
-rw-r--r-- | grammar/rainerscript.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/grammar/rainerscript.c b/grammar/rainerscript.c index ad6a32e8..a98277af 100644 --- a/grammar/rainerscript.c +++ b/grammar/rainerscript.c @@ -2186,10 +2186,14 @@ cnfstmtNewAct(struct nvlst *lst) { struct cnfstmt* cnfstmt; char namebuf[256]; + rsRetVal localRet; if((cnfstmt = cnfstmtNew(S_ACT)) == NULL) goto done; - if(actionNewInst(lst, &cnfstmt->d.act) != RS_RET_OK) { - // TODO:RS_RET_WARN? + localRet = actionNewInst(lst, &cnfstmt->d.act); + if(localRet == RS_RET_OK_WARN) { + parser_errmsg("warnings occured in file '%s' around line %d", + cnfcurrfn, yylineno); + } else if(actionNewInst(lst, &cnfstmt->d.act) != RS_RET_OK) { parser_errmsg("errors occured in file '%s' around line %d", cnfcurrfn, yylineno); cnfstmt->nodetype = S_NOP; /* disable action! */ |