summaryrefslogtreecommitdiffstats
path: root/tools/omfile.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-05 12:44:57 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-05 12:44:57 +0100
commita5cd509be736fcff3c8ae3104712d2fe85776416 (patch)
treedde68f6af795daeb9409bfbd6b6bb4ff8fe6ba6d /tools/omfile.c
parent037576dcc79bb93b78ec8d91305fa605f8bf7a3d (diff)
downloadrsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.tar.gz
rsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.tar.xz
rsyslog-a5cd509be736fcff3c8ae3104712d2fe85776416.zip
bugfix: named pipes did no longer work (they always got an open error)
this was a regression from the omfile rewrite in 4.5.0
Diffstat (limited to 'tools/omfile.c')
-rw-r--r--tools/omfile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/omfile.c b/tools/omfile.c
index 9d6b3d1d..bea94e99 100644
--- a/tools/omfile.c
+++ b/tools/omfile.c
@@ -1,8 +1,6 @@
/* omfile.c
* This is the implementation of the build-in file output module.
*
- * Handles: eTypeCONSOLE, eTypeTTY, eTypeFILE, eTypePIPE
- *
* NOTE: read comments in module-template.h to understand how this file
* works!
*
@@ -667,6 +665,11 @@ CODESTARTparseSelectorAct
case '|':
case '/':
CODE_STD_STRING_REQUESTparseSelectorAct(1)
+ /* we now have the same semantics for files and pipes, but we need to skip over
+ * the pipe indicator traditionally seen in config files...
+ */
+ if(*p == '|')
+ ++p;
CHKiRet(cflineParseFileName(p, (uchar*) pData->f_fname, *ppOMSR, 0, OMSR_NO_RQD_TPL_OPTS,
(pszTplName == NULL) ? (uchar*)"RSYSLOG_FileFormat" : pszTplName));
pData->bDynamicName = 0;