diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-15 07:47:31 -0700 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-10-15 07:47:31 -0700 |
commit | c27a2ab6867897ec379ec1e9afb216c99070b33e (patch) | |
tree | b43d9d0d74df0a22e59e8e029ce0fb322148bc34 /plugins | |
parent | 90933057bc2f014fd2124ba7d830652e9b1ead96 (diff) | |
download | rsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.tar.gz rsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.tar.xz rsyslog-c27a2ab6867897ec379ec1e9afb216c99070b33e.zip |
fixed incomplete merge
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imfile/imfile.c | 1 |
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)); |