summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-09 17:33:12 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-09 17:33:12 +0200
commitda6489743cd31a7896f17f5500dbfd18e0560260 (patch)
tree2683a7a5cb143bbdddf1bfc961fcd8fe6edaab7a /tools/omfile.c
parent59f8ebdba75d693f7b462f51b7b50136b590dea7 (diff)
downloadrsyslog-da6489743cd31a7896f17f5500dbfd18e0560260.tar.gz
rsyslog-da6489743cd31a7896f17f5500dbfd18e0560260.tar.bz2
rsyslog-da6489743cd31a7896f17f5500dbfd18e0560260.zip
milestone/[PARTWORK]: made sure all legacy selectors work
... except for the not guaranteed $outchannel construct, which we could not fix without syntax change. Shouldn't hurt too many.
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index b50a36ab..8ecfc302 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -712,6 +712,14 @@ 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;
+ }
if(!(*p == '$' || *p == '?' || *p == '/' || *p == '.' || *p == '-'))
ABORT_FINALIZE(RS_RET_CONFLINE_UNPROCESSED);