summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-26 05:34:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:43 -0500
commitfef66179dd5a7c3498f23a79a43de9632f02648b (patch)
tree0c61f6d838aa3e89c2ed265de2b3d17910a15e00 /source4/libcli
parent3511e5e8061f0c563b076af165d1afb5ca3b2a78 (diff)
downloadsamba-fef66179dd5a7c3498f23a79a43de9632f02648b.tar.gz
samba-fef66179dd5a7c3498f23a79a43de9632f02648b.tar.bz2
samba-fef66179dd5a7c3498f23a79a43de9632f02648b.zip
r3237: - allow for readx calls larger than 64k
- combine setattre and standard levels in setfileinfo, as they use the same structure (This used to be commit e9aa1f789955533aca4fe43d5d74ffa1e8d1300b)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/rawreadwrite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/libcli/raw/rawreadwrite.c b/source4/libcli/raw/rawreadwrite.c
index e145ff9c10..bc9730f33d 100644
--- a/source4/libcli/raw/rawreadwrite.c
+++ b/source4/libcli/raw/rawreadwrite.c
@@ -77,9 +77,9 @@ struct smbcli_request *smb_raw_read_send(struct smbcli_tree *tree, union smb_rea
SSVAL(req->out.vwv, VWV(1), 0);
SSVAL(req->out.vwv, VWV(2), parms->readx.in.fnum);
SIVAL(req->out.vwv, VWV(3), parms->readx.in.offset);
- SSVAL(req->out.vwv, VWV(5), parms->readx.in.maxcnt);
+ SSVAL(req->out.vwv, VWV(5), parms->readx.in.maxcnt & 0xFFFF);
SSVAL(req->out.vwv, VWV(6), parms->readx.in.mincnt);
- SIVAL(req->out.vwv, VWV(7), 0); /* reserved */
+ SIVAL(req->out.vwv, VWV(7), parms->readx.in.maxcnt >> 16);
SSVAL(req->out.vwv, VWV(9), parms->readx.in.remaining);
if (bigoffset) {
SIVAL(req->out.vwv, VWV(10),parms->readx.in.offset>>32);