mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-21 13:38:01 +03:00
Do not allow attempts to open files in VxWorks unless the full pathname is
provided. FossilOrigin-Name: 4720205249214c01f6e63738e4927c0f53c853346cc2dfa45522aaa469f4d702
This commit is contained in:
@@ -6352,6 +6352,12 @@ static int unixOpen(
|
||||
|| eType==SQLITE_OPEN_TRANSIENT_DB || eType==SQLITE_OPEN_WAL
|
||||
);
|
||||
|
||||
#if OS_VXWORKS
|
||||
/* The file-ID mechanism used in Vxworks requires that all pathnames
|
||||
** provided to unixOpen must be absolute pathnames. */
|
||||
if( zPath!=0 && zPath[0]!='/' ){ return SQLITE_CANTOPEN; }
|
||||
#endif
|
||||
|
||||
/* Detect a pid change and reset the PRNG. There is a race condition
|
||||
** here such that two or more threads all trying to open databases at
|
||||
** the same instant might all reset the PRNG. But multiple resets
|
||||
|
||||
Reference in New Issue
Block a user