From 0ca4ce887c8aaf6059b6c989af00e642ef84f92e Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Sun, 4 Apr 1999 07:18:38 +0000 Subject: Fixed up incorrect calls to read_file(). (This used to be commit 17d007daa3d1fa60501eae1eecfc2d0f88c1692e) --- source3/smbd/reply.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd/reply.c') diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 59a883f2d8..51d737a784 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -2093,7 +2093,7 @@ int reply_read_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt if (is_locked(fsp,conn,smb_maxcnt,startpos, F_RDLCK)) return(ERROR(ERRDOS,ERRlock)); - nread = read_file(fsp,data,smb_maxcnt); + nread = read_file(fsp,data,startpos,smb_maxcnt); if (nread < 0) return(UNIXERROR(ERRDOS,ERRnoaccess)); @@ -3869,7 +3869,7 @@ int reply_readbmpx(connection_struct *conn, char *inbuf,char *outbuf,int length, { size_t N = MIN(max_per_packet,tcount-total_read); - nread = read_file(fsp,data,N); + nread = read_file(fsp,data,startpos,N); if (nread <= 0) nread = 0; -- cgit