diff options
author | Andre Lorbach <alorbach@adiscon.com> | 2013-08-06 11:29:33 +0200 |
---|---|---|
committer | Andre Lorbach <alorbach@adiscon.com> | 2013-08-06 11:29:33 +0200 |
commit | eea77a5bf6ff93db07b6bd3ad07cbe07fdf249ca (patch) | |
tree | ac1c56eae8b9dcfae2ce81386ffc8c7686cc077c /tools/ompipe.c | |
parent | c05e0e76e8ab6fb61d854902662be4ae067d7838 (diff) | |
download | rsyslog-eea77a5bf6ff93db07b6bd3ad07cbe07fdf249ca.tar.gz rsyslog-eea77a5bf6ff93db07b6bd3ad07cbe07fdf249ca.tar.bz2 rsyslog-eea77a5bf6ff93db07b6bd3ad07cbe07fdf249ca.zip |
Using OMSRsetEntry to set the default action template in ompipe for now.
If no default template is set, a segfault occured on startup.
Diffstat (limited to 'tools/ompipe.c')
-rw-r--r-- | tools/ompipe.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/ompipe.c b/tools/ompipe.c index 420e2b11..df8066b1 100644 --- a/tools/ompipe.c +++ b/tools/ompipe.c @@ -329,6 +329,10 @@ CODESTARTnewActInst } } + CHKiRet(OMSRsetEntry(*ppOMSR, 0, (uchar*)strdup((pData->tplName == NULL) ? + "RSYSLOG_ForwardFormat" : (char*)pData->tplName), + OMSR_NO_RQD_TPL_OPTS)); + /* Old flawed template code if(pData->tplName == NULL) { CHKiRet(OMSRsetEntry(*ppOMSR, 0, (uchar*) "RSYSLOG_FileFormat", OMSR_NO_RQD_TPL_OPTS)); @@ -336,7 +340,7 @@ CODESTARTnewActInst CHKiRet(OMSRsetEntry(*ppOMSR, 0, (uchar*) strdup((char*) pData->tplName), OMSR_NO_RQD_TPL_OPTS)); - } + }*/ CODE_STD_FINALIZERnewActInst cnfparamvalsDestruct(pvals, &actpblk); ENDnewActInst |