From 187ab7e123c97b3091c78f6fb86412a3cec94569 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 25 Jul 2007 16:25:35 +0000 Subject: moved some references to module data from syslogd.c to modules --- omfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'omfile.c') diff --git a/omfile.c b/omfile.c index d0db334e..858b8511 100644 --- a/omfile.c +++ b/omfile.c @@ -566,6 +566,8 @@ CODESTARTparseSelectorAct } else syncfile = 1; + f->f_un.f_file.f_sizeLimit = 0; /* default value, use outchannels to configure! */ + /* yes, the if below is redundant, but I need it now. Will go away as * the code further changes. -- rgerhards, 2007-07-25 */ @@ -597,7 +599,7 @@ CODESTARTparseSelectorAct * a template name. rgerhards, 2007-07-03 */ ++p; /* eat '?' */ - if((iRet = cflineParseFileName(f, p)) != RS_RET_OK) + if((iRet = cflineParseFileName(f, p, (uchar*) f->f_un.f_file.f_fname)) != RS_RET_OK) break; f->f_un.f_file.pTpl = tplFind((char*)f->f_un.f_file.f_fname, strlen((char*) f->f_un.f_file.f_fname)); @@ -637,7 +639,7 @@ CODESTARTparseSelectorAct * to use is specified. So we need to scan for the first coma first * and then look at the rest of the line. */ - if((iRet = cflineParseFileName(f, p)) != RS_RET_OK) + if((iRet = cflineParseFileName(f, p, (uchar*) f->f_un.f_file.f_fname)) != RS_RET_OK) break; if(syncfile) -- cgit