Index: third_party/sqlite/amalgamation/sqlite3.c |
diff --git a/third_party/sqlite/amalgamation/sqlite3.c b/third_party/sqlite/amalgamation/sqlite3.c |
index 5115f818a0d842841ae2d4b74044520a32ef73f0..3e794a9c60a9a737abe88889c1d2831aed502deb 100644 |
--- a/third_party/sqlite/amalgamation/sqlite3.c |
+++ b/third_party/sqlite/amalgamation/sqlite3.c |
@@ -28902,7 +28902,7 @@ static UnixUnusedFd *findReusableFd(const char *zPath, int flags){ |
** |
** Even if a subsequent open() call does succeed, the consequences of |
** not searching for a resusable file descriptor are not dire. */ |
- if( 0==stat(zPath, &sStat) ){ |
+ if( 0==osStat(zPath, &sStat) ){ |
unixInodeInfo *pInode; |
unixEnterMutex(); |
@@ -28972,7 +28972,7 @@ static int findCreateFileMode( |
memcpy(zDb, zPath, nDb); |
zDb[nDb] = '\0'; |
- if( 0==stat(zDb, &sStat) ){ |
+ if( 0==osStat(zDb, &sStat) ){ |
*pMode = sStat.st_mode & 0777; |
}else{ |
rc = SQLITE_IOERR_FSTAT; |
@@ -29376,7 +29376,7 @@ static int unixAccess( |
*pResOut = (osAccess(zPath, amode)==0); |
if( flags==SQLITE_ACCESS_EXISTS && *pResOut ){ |
struct stat buf; |
- if( 0==stat(zPath, &buf) && buf.st_size==0 ){ |
+ if( 0==osStat(zPath, &buf) && buf.st_size==0 ){ |
*pResOut = 0; |
} |
} |