summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-11 10:08:16 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-11 10:08:16 +0200
commitd66d3d6033aae584bfc622f3f9dcddc4f152c308 (patch)
tree1d9b8097ef0f1c32bd2f0d6b038cfea4c58efc4c /tools/omfile.c
parent398966be6d5a94d2602a08305b0533bf4a502a95 (diff)
downloadrsyslog-d66d3d6033aae584bfc622f3f9dcddc4f152c308.tar.gz
rsyslog-d66d3d6033aae584bfc622f3f9dcddc4f152c308.tar.xz
rsyslog-d66d3d6033aae584bfc622f3f9dcddc4f152c308.zip
added warning message for old-style outchannel syntax
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 f32da124..150848eb 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -720,7 +720,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);