diff options
-rw-r--r-- | source3/smbd/reply.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |