aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-11-30 20:36:26 +0000
committerdrh <drh@noemail.net>2015-11-30 20:36:26 +0000
commit40fe8d31f54a823da92a85f9aa43fde92091fca5 (patch)
tree1bf9269e9055a360de17c64c12e5e13ac0768140 /src/os_unix.c
parentf8b0be48d157d30a0f5aed78ab732b3a83223ded (diff)
downloadsqlite-40fe8d31f54a823da92a85f9aa43fde92091fca5.tar.gz
sqlite-40fe8d31f54a823da92a85f9aa43fde92091fca5.zip
The EOVERFLOW errors from fstat() is not possible unless SQLite has been
compiled with SQLITE_DISABLE_LFS. FossilOrigin-Name: 8cfb7a50bb70ba1e021c1d12d31563e98a20d291
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index eb20041ed..49f6563b1 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1229,7 +1229,7 @@ static int findInodeInfo(
rc = osFstat(fd, &statbuf);
if( rc!=0 ){
storeLastErrno(pFile, errno);
-#ifdef EOVERFLOW
+#if defined(EOVERFLOW) && defined(SQLITE_DISABLE_LFS)
if( pFile->lastErrno==EOVERFLOW ) return SQLITE_NOLFS;
#endif
return SQLITE_IOERR;