From c99d2a436ff3c83c102c8c01b39861d0e6955f66 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 22 Jan 2002 07:27:02 +0000 Subject: Ensure fsp->size is up to date. Jeremy. --- source/smbd/reply.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/smbd/reply.c') diff --git a/source/smbd/reply.c b/source/smbd/reply.c index 01127b6977a..0e4e466b33e 100644 --- a/source/smbd/reply.c +++ b/source/smbd/reply.c @@ -2192,9 +2192,7 @@ int reply_readbraw(connection_struct *conn, char *inbuf, char *outbuf, int dum_s if (size < sizeneeded) { SMB_STRUCT_STAT st; if (vfs_fstat(fsp,fsp->fd,&st) == 0) - size = st.st_size; - if (!fsp->can_write) - fsp->size = size; + fsp->size = size = st.st_size; } if (startpos >= size) -- cgit