summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-11 11:24:08 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-11 11:24:08 +0200
commit3b63b155ed5e4d58858baa3d6f07293099d8a4e5 (patch)
tree38e8065408eddf7acfdb5172d5a9b364bd436d72 /tools/omfile.c
parentb035298e30a5caebbf9dbb7b57ad4e17497b2abf (diff)
parent4e11040e04c7147f9787e2a496591f7ada190480 (diff)
downloadrsyslog-3b63b155ed5e4d58858baa3d6f07293099d8a4e5.tar.gz
rsyslog-3b63b155ed5e4d58858baa3d6f07293099d8a4e5.tar.xz
rsyslog-3b63b155ed5e4d58858baa3d6f07293099d8a4e5.zip
Merge branch 'v5-devel'
Conflicts: ChangeLog configure.ac doc/manual.html runtime/rsyslog.h
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index b50a36ab..4dd32b08 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -16,7 +16,7 @@
* pipes. These have been moved to ompipe, to reduced the entanglement
* between the two different functionalities. -- rgerhards
*
- * Copyright 2007-2009 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -712,6 +712,21 @@ ENDdoAction
BEGINparseSelectorAct
CODESTARTparseSelectorAct
+ /* Note: the indicator sequence permits us to use '$' to signify
+ * outchannel, what otherwise is not possible due to truely
+ * unresolvable grammar conflicts (*this time no way around*).
+ * rgerhards, 2011-07-09
+ */
+ 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);