diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-09 17:33:12 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-09 17:33:12 +0200 |
commit | da6489743cd31a7896f17f5500dbfd18e0560260 (patch) | |
tree | 2683a7a5cb143bbdddf1bfc961fcd8fe6edaab7a /tools/omfile.c | |
parent | 59f8ebdba75d693f7b462f51b7b50136b590dea7 (diff) | |
download | rsyslog-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.c | 8 |
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); |