git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cf21e6
)
Fixed up incorrect calls to read_file().
author
Tim Potter
<tpot@samba.org>
Sun, 4 Apr 1999 07:18:38 +0000
(07:18 +0000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/source3/smbd/reply.c
b/source3/smbd/reply.c
index 59a883f2d8657f6334eea5a41dfdc2d9e20d210d..51d737a784cd061a120cb5ad5c75e78a7282a3b2 100644
(file)
--- 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,s
tartpos,s
mb_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;