diff options
author | Jeremy Allison <jra@samba.org> | 2001-08-03 19:32:33 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-08-03 19:32:33 +0000 |
commit | 4f415ef128528bcecddceee353d40dd3eedf64fd (patch) | |
tree | ef5fe79ac4c595dd492b834e45b86aba1aac2682 /source3 | |
parent | 5b33eaeddec687da18720ac55e92d7b1c493b75c (diff) | |
download | samba-4f415ef128528bcecddceee353d40dd3eedf64fd.tar.gz samba-4f415ef128528bcecddceee353d40dd3eedf64fd.tar.bz2 samba-4f415ef128528bcecddceee353d40dd3eedf64fd.zip |
The write zero bytes is an allocate, not set EOF.
Jeremy.
(This used to be commit 28b4ee1eba5fbfd83c000a0e485632c477b7bfa9)
Diffstat (limited to 'source3')
-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); |