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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user