diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-11 08:37:11 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-11 08:37:11 +0200 |
commit | 5442adf8f407594d6197e58db492f31048ac4f85 (patch) | |
tree | d85d664d5b7d68ecd521bfe235ffabd99e9fc859 /tools | |
parent | f09ee69ee1b7f8c098d0720c8e85a6753cc7d342 (diff) | |
download | rsyslog-5442adf8f407594d6197e58db492f31048ac4f85.tar.gz rsyslog-5442adf8f407594d6197e58db492f31048ac4f85.tar.xz rsyslog-5442adf8f407594d6197e58db492f31048ac4f85.zip |
support for :omfile: forward compatibility directive
Diffstat (limited to 'tools')
-rw-r--r-- | tools/omfile.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/omfile.c b/tools/omfile.c index 487cf8a0..a4f010c6 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. * @@ -646,6 +646,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); |