summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-04-18 13:05:24 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:10 -0500
commitacc051674226d60a4d9739d883b2261ce98d651c (patch)
tree05469c7ea2b04cd081f49fdef5f23b36d7532741 /source4/libcli
parentde1757044611c4b68b96c17b40d64e006c097af7 (diff)
downloadsamba-acc051674226d60a4d9739d883b2261ce98d651c.tar.gz
samba-acc051674226d60a4d9739d883b2261ce98d651c.tar.bz2
samba-acc051674226d60a4d9739d883b2261ce98d651c.zip
r15121: fix pushing of the FLAGS2_READ_PERMIT_EXECUTE flag in the
"readx.read_for_execute = True" case. metze (This used to be commit f30f9cd3285f75ac8cbbe8dc5a476fe6a714a2e3)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/raw/rawreadwrite.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/raw/rawreadwrite.c b/source4/libcli/raw/rawreadwrite.c
index 7f1aaf26d4..7b424df6df 100644
--- a/source4/libcli/raw/rawreadwrite.c
+++ b/source4/libcli/raw/rawreadwrite.c
@@ -85,7 +85,9 @@ struct smbcli_request *smb_raw_read_send(struct smbcli_tree *tree, union smb_rea
SIVAL(req->out.vwv, VWV(10),parms->readx.in.offset>>32);
}
if (parms->readx.in.read_for_execute) {
- req->flags2 |= FLAGS2_READ_PERMIT_EXECUTE;
+ uint16_t flags2 = SVAL(req->out.hdr, HDR_FLG2);
+ flags2 |= FLAGS2_READ_PERMIT_EXECUTE;
+ SSVAL(req->out.hdr, HDR_FLG2, flags2);
}
break;
}