diff options
author | Tim Potter <tpot@samba.org> | 1999-04-04 07:18:38 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 1999-04-04 07:18:38 +0000 |
commit | 0ca4ce887c8aaf6059b6c989af00e642ef84f92e (patch) | |
tree | a28cc11bbe91ebbdce176ed53a0bcbd2e4774b29 /source3 | |
parent | 5cf21e60c8e406d390ee271b9e5945a9c229695e (diff) | |
download | samba-0ca4ce887c8aaf6059b6c989af00e642ef84f92e.tar.gz samba-0ca4ce887c8aaf6059b6c989af00e642ef84f92e.tar.bz2 samba-0ca4ce887c8aaf6059b6c989af00e642ef84f92e.zip |
Fixed up incorrect calls to read_file().
(This used to be commit 17d007daa3d1fa60501eae1eecfc2d0f88c1692e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/smbd/reply.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |