summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-30 18:18:40 -0700
committerJeremy Allison <jra@samba.org>2007-10-30 18:18:40 -0700
commitff82c0a037b7c7ce69d87ab70284acc71df5e1a7 (patch)
tree0177bc8ca670a69a37c9821a99d4416271dbe2aa /source3/smbd
parent360c02328faf6fd64edebc8f3d499cee54753aeb (diff)
downloadsamba-ff82c0a037b7c7ce69d87ab70284acc71df5e1a7.tar.gz
samba-ff82c0a037b7c7ce69d87ab70284acc71df5e1a7.tar.bz2
samba-ff82c0a037b7c7ce69d87ab70284acc71df5e1a7.zip
Handle the disk full error case correctly.
Jeremy. (This used to be commit b7088bb9c2a00d4717b9a7efa4bddc0c005f4efb)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 4c1ed56d4f..531e71fe73 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3698,7 +3698,7 @@ void reply_writeunlock(connection_struct *conn, struct smb_request *req)
return;
}
- if(((nwritten == 0) && (numtowrite != 0))||(nwritten < 0)) {
+ if(((nwritten < numtowrite) && (numtowrite != 0))||(nwritten < 0)) {
reply_unixerror(req, ERRHRD, ERRdiskfull);
END_PROFILE(SMBwriteunlock);
return;