From 4f415ef128528bcecddceee353d40dd3eedf64fd Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 3 Aug 2001 19:32:33 +0000 Subject: The write zero bytes is an allocate, not set EOF. Jeremy. (This used to be commit 28b4ee1eba5fbfd83c000a0e485632c477b7bfa9) --- source3/smbd/reply.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/smbd') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index ab3fba9830..a956261a78 100644 --- a/source3/smbd/reply.c +++ b/source3/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); -- cgit