summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-10-15 07:47:31 -0700
committerRainer Gerhards <rgerhards@adiscon.com>2010-10-15 07:47:31 -0700
commitc27a2ab6867897ec379ec1e9afb216c99070b33e (patch)
treeb43d9d0d74df0a22e59e8e029ce0fb322148bc34 /plugins
parent90933057bc2f014fd2124ba7d830652e9b1ead96 (diff)
downloadrsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.tar.gz
rsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.tar.xz
rsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.zip
fixed incomplete merge
Diffstat (limited to 'plugins')
-rw-r--r--plugins/imfile/imfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c
index e16f26f8..3981f9f7 100644
--- a/plugins/imfile/imfile.c
+++ b/plugins/imfile/imfile.c
@@ -366,6 +366,7 @@ persistStrmState(fileInfo_t *pInfo)
/* TODO: create a function persistObj in obj.c? */
CHKiRet(strm.Construct(&psSF));
lenDir = strlen((char*)glbl.GetWorkDir());
+ if(lenDir > 0)
CHKiRet(strm.SetDir(psSF, glbl.GetWorkDir(), lenDir));
CHKiRet(strm.SettOperationsMode(psSF, STREAMMODE_WRITE_TRUNC));
CHKiRet(strm.SetsType(psSF, STREAMTYPE_FILE_SINGLE));