1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-12-21 13:38:01 +03:00

If open files in VxWorks, do not unlink the file unless the file was marked

as delete-on-close.

FossilOrigin-Name: bb6114dbbf3bfbea57cd9be21666299663e94576b0175f6aeefd1d0f7107398e
This commit is contained in:
drh
2025-09-09 19:00:55 +00:00
parent 130a2f52b1
commit e7f190b8e1
3 changed files with 10 additions and 9 deletions

View File

@@ -5986,8 +5986,9 @@ static int fillInUnixFile(
robust_close(pNew, h, __LINE__);
h = -1;
}
osUnlink(zFilename);
pNew->ctrlFlags |= UNIXFILE_DELETE;
if( pNew->ctrlFlags & UNIXFILE_DELETE ){
osUnlink(zFilename);
}
if( pNew->pId ){
vxworksReleaseFileId(pNew->pId);
pNew->pId = 0;