diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-11 14:09:03 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-09-11 14:09:03 +0200 |
commit | cc78bc000c4ec70cbeb870cc31a77ed6afd681ae (patch) | |
tree | 75c6db6f18f355f2003865f9ab3b7e6b81e24608 /runtime/rsconf.c | |
parent | 9c1c085ae498845d673bc5a621dbafde96736789 (diff) | |
download | rsyslog-cc78bc000c4ec70cbeb870cc31a77ed6afd681ae.tar.gz rsyslog-cc78bc000c4ec70cbeb870cc31a77ed6afd681ae.tar.xz rsyslog-cc78bc000c4ec70cbeb870cc31a77ed6afd681ae.zip |
new ruleengine: properly remove BSD-style blocks
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r-- | runtime/rsconf.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c index 565bc597..3f99e7b7 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -395,13 +395,21 @@ void cnfDoCfsysline(char *ln) void cnfDoBSDTag(char *ln) { DBGPRINTF("cnf:global:BSD tag: %s\n", ln); - cflineProcessTagSelector((uchar**)&ln); + errmsg.LogError(0, RS_RET_BSD_BLOCKS_UNSUPPORTED, + "BSD-style blocks are no longer supported in rsyslog, " + "see http://www.rsyslog.com/g/BSD for details and a " + "solution (Block '%s')", ln); + free(ln); } void cnfDoBSDHost(char *ln) { DBGPRINTF("cnf:global:BSD host: %s\n", ln); - cflineProcessHostSelector((uchar**)&ln); + errmsg.LogError(0, RS_RET_BSD_BLOCKS_UNSUPPORTED, + "BSD-style blocks are no longer supported in rsyslog, " + "see http://www.rsyslog.com/g/BSD for details and a " + "solution (Block '%s')", ln); + free(ln); } es_str_t* |