Index: third_party/sqlite/src/src/os_unix.c |
diff --git a/third_party/sqlite/src/src/os_unix.c b/third_party/sqlite/src/src/os_unix.c |
index 22164702ecd1e6fef5a447e0c526d253d6b8e65d..e5b2540ac5d4d2949aa43d3352280acb53730dfd 100644 |
--- a/third_party/sqlite/src/src/os_unix.c |
+++ b/third_party/sqlite/src/src/os_unix.c |
@@ -4757,7 +4757,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(); |
@@ -4827,7 +4827,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; |
@@ -5231,7 +5231,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; |
} |
} |