Fixed up incorrect calls to read_file().
authorTim Potter <tpot@samba.org>
Sun, 4 Apr 1999 07:18:38 +0000 (07:18 +0000)
committerTim Potter <tpot@samba.org>
Sun, 4 Apr 1999 07:18:38 +0000 (07:18 +0000)
(This used to be commit 17d007daa3d1fa60501eae1eecfc2d0f88c1692e)

source3/smbd/reply.c

index 59a883f2d8657f6334eea5a41dfdc2d9e20d210d..51d737a784cd061a120cb5ad5c75e78a7282a3b2 100644 (file)
@@ -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;