aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-04-15 12:36:10 +0000
committerdrh <drh@noemail.net>2011-04-15 12:36:10 +0000
commita21b83ba3bc3552c0dbd92fd5051533cda934718 (patch)
treed09897809ee78e0511769bfda20b8f613022caf2 /src/os_unix.c
parent5f2dfdbc23a19827bad014b4f7ea851d4b10f4c1 (diff)
downloadsqlite-a21b83ba3bc3552c0dbd92fd5051533cda934718.tar.gz
sqlite-a21b83ba3bc3552c0dbd92fd5051533cda934718.zip
Make sure the unix backend returns SQLITE_FULL if write() fails with an
ENOSPC error code. FossilOrigin-Name: 721e3c16b389a43f5d7c47a8fd0294473a39dad2
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 b70a9a607..905b3cd23 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3090,7 +3090,7 @@ static int unixWrite(
SimulateDiskfullError(( wrote=0, amt=1 ));
if( amt>0 ){
- if( wrote<0 ){
+ if( wrote<0 && pFile->lastErrno!=ENOSPC ){
/* lastErrno set by seekAndWrite */
return SQLITE_IOERR_WRITE;
}else{