diff options
-rw-r--r-- | plugins/imfile/imfile.c | 6 | ||||
-rw-r--r-- | stream.c | 1 |
2 files changed, 3 insertions, 4 deletions
diff --git a/plugins/imfile/imfile.c b/plugins/imfile/imfile.c index f9c7d0ed..ce7134d2 100644 --- a/plugins/imfile/imfile.c +++ b/plugins/imfile/imfile.c @@ -148,10 +148,10 @@ openFile(fileInfo_t *pThis) CHKiRet(strmSeekCurrOffs(pThis->pStrm)); - /* OK, we could successfully read the file, so we now can request that it be - * deleted when we are done with the persisted information. + /* OK, we could successfully read the file, so we now can request that it be deleted. + * If we need it again, it will be written on the next shutdown. */ - // TODO: do we need this functionality? psSF->bNeedDelSF = 1; + psSF->bDeleteOnClose = 1; finalize_it: if(psSF != NULL) @@ -78,7 +78,6 @@ static rsRetVal strmOpenFile(strm_t *pThis) CHKiRet(genFileName(&pThis->pszCurrFName, pThis->pszDir, pThis->lenDir, pThis->pszFName, pThis->lenFName, pThis->iCurrFNum, pThis->iFileNumDigits)); } else { -RUNLOG_VAR("%s", pThis->pszDir); if(pThis->pszDir == NULL) { if((pThis->pszCurrFName = (uchar*) strdup((char*) pThis->pszFName)) == NULL) ABORT_FINALIZE(RS_RET_OUT_OF_MEMORY); |