summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-08-03 19:32:33 +0000
committerJeremy Allison <jra@samba.org>2001-08-03 19:32:33 +0000
commit28b4ee1eba5fbfd83c000a0e485632c477b7bfa9 (patch)
tree2a006818da1ad449dd8e5d5d773bed18b8e81e74 /source/smbd
parentdd4a6edd497053f4e393216884d356975efef799 (diff)
downloadsamba-28b4ee1eba5fbfd83c000a0e485632c477b7bfa9.tar.gz
samba-28b4ee1eba5fbfd83c000a0e485632c477b7bfa9.tar.xz
samba-28b4ee1eba5fbfd83c000a0e485632c477b7bfa9.zip
The write zero bytes is an allocate, not set EOF.
Jeremy.
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/reply.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index ab3fba9830e..a956261a78a 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -2477,7 +2477,8 @@ int reply_write(connection_struct *conn, char *inbuf,char *outbuf,int size,int d
zero then the file size should be extended or
truncated to the size given in smb_vwv[2-3] */
if(numtowrite == 0) {
- nwritten = vfs_set_filelen(fsp, (SMB_OFF_T)startpos);
+ /* This is actually an allocate call, not set EOF. JRA */
+ nwritten = vfs_allocate_file_space(fsp, (SMB_OFF_T)startpos);
} else
nwritten = write_file(fsp,data,startpos,numtowrite);