aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2018-06-04 08:28:18 +0000
committerdan <dan@noemail.net>2018-06-04 08:28:18 +0000
commit2b1287cf4443e040662a16667bb024f948e51c17 (patch)
tree10151f634a4b704038fdabb24a6b813990d61cb8 /src/os_unix.c
parentf1abe3680e04cc0f5c9eed7a9e6b47093a490beb (diff)
parenteb7df46e3203bb1fe1cfbd1c42c3af1a26a6ce6d (diff)
downloadsqlite-2b1287cf4443e040662a16667bb024f948e51c17.tar.gz
sqlite-2b1287cf4443e040662a16667bb024f948e51c17.zip
Merge latest trunk changes into this branch.
FossilOrigin-Name: 83d6416a868fac81a78c9507185a48d00920e4322276245e285946f760915f4a
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 2b9c117e3..0dd461da0 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3779,7 +3779,7 @@ static int fcntlSizeHint(unixFile *pFile, i64 nByte){
do{
err = osFallocate(pFile->h, buf.st_size, nSize-buf.st_size);
}while( err==EINTR );
- if( err ) return SQLITE_IOERR_WRITE;
+ if( err && err!=EINVAL ) return SQLITE_IOERR_WRITE;
#else
/* If the OS does not have posix_fallocate(), fake it. Write a
** single byte to the last byte in each block that falls entirely