use remove instead of unlink

This commit is contained in:
Chip Turner 2016-03-14 07:44:59 -07:00
parent 6de382cdbb
commit 9da7f86591

View File

@ -429,7 +429,7 @@ static int FIO_compressFilename_extRess(cRess_t ress,
result = FIO_compressFilename_internal(ress, dstFileName, srcFileName, cLevel);
if (result != 0) {
unlink(dstFileName);
remove(dstFileName);
}
fclose(ress.srcFile); /* no pb to expect : only reading */
@ -643,7 +643,7 @@ static int FIO_decompressFile_extRess(dRess_t ress,
result = FIO_decompressSrcFile(ress, srcFileName);
if (result != 0) {
unlink(dstFileName);
remove(dstFileName);
}
if (fclose(ress.dstFile)) EXM_THROW(38, "Write error : cannot properly close %s", dstFileName);