summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-11 09:34:26 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-11 09:34:26 +0200
commitf55eee74a3fca58f747857c9b7ec5040178a6f8b (patch)
tree04c8ae7ab49e55dfc6cbb118cde26862ed3e2bae /tools/omfile.c
parent53265e3c7403c290158b70f7efad2b9388a06e6c (diff)
downloadrsyslog-f55eee74a3fca58f747857c9b7ec5040178a6f8b.tar.gz
rsyslog-f55eee74a3fca58f747857c9b7ec5040178a6f8b.tar.xz
rsyslog-f55eee74a3fca58f747857c9b7ec5040178a6f8b.zip
issue a warning message for old-style dynafile action
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index b7b94597..a58dfd5b 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -672,7 +672,14 @@ CODESTARTparseSelectorAct
*/
if(!strncmp((char*) p, ":omfile:", sizeof(":omfile:") - 1)) {
p += sizeof(":omfile:") - 1;
- }
+ } else {
+ if(*p == '$') {
+ errmsg.LogError(0, RS_RET_OUTDATED_STMT,
+ "action '%s' treated as ':omfile:%s' - please "
+ "change syntax, '%s' will not be supported in "
+ "rsyslog v6 and above.", p, p, p);
+ }
+ }
if(!(*p == '$' || *p == '?' || *p == '/' || *p == '.' || *p == '-'))
ABORT_FINALIZE(RS_RET_CONFLINE_UNPROCESSED);