r15121: fix pushing of the FLAGS2_READ_PERMIT_EXECUTE flag in the
authorStefan Metzmacher <metze@samba.org>
Tue, 18 Apr 2006 13:05:24 +0000 (13:05 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:10 +0000 (14:04 -0500)
"readx.read_for_execute = True" case.

metze
(This used to be commit f30f9cd3285f75ac8cbbe8dc5a476fe6a714a2e3)

source4/libcli/raw/rawreadwrite.c

index 7f1aaf26d491da1823460829b89f1b2e12655452..7b424df6dfb69f33e96b68e8b834c2afc6d1c95d 100644 (file)
@@ -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;
        }