svn commit: samba r15121 - in branches/SAMBA_4_0/source/libcli/raw: .

metze at samba.org metze at samba.org
Tue Apr 18 13:05:24 GMT 2006


Author: metze
Date: 2006-04-18 13:05:24 +0000 (Tue, 18 Apr 2006)
New Revision: 15121

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15121

Log:
fix pushing of the FLAGS2_READ_PERMIT_EXECUTE flag in the
"readx.read_for_execute = True" case.

metze
Modified:
   branches/SAMBA_4_0/source/libcli/raw/rawreadwrite.c


Changeset:
Modified: branches/SAMBA_4_0/source/libcli/raw/rawreadwrite.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/raw/rawreadwrite.c	2006-04-18 11:26:43 UTC (rev 15120)
+++ branches/SAMBA_4_0/source/libcli/raw/rawreadwrite.c	2006-04-18 13:05:24 UTC (rev 15121)
@@ -85,7 +85,9 @@
 			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;
 	}



More information about the samba-cvs mailing list