diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-05-17 09:52:14 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:04 -0500 |
commit | 5ff4b74df3f32192c9828233295d9f8fedcceb23 (patch) | |
tree | da62feda7a25e882b41fb99c6a0949a08f44d0db /source4/libcli/raw | |
parent | d86da81304bc247c77b78f1f1d9da562168285d7 (diff) | |
download | samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.tar.gz samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.tar.bz2 samba-5ff4b74df3f32192c9828233295d9f8fedcceb23.zip |
r15656: for NT IOCTL's we need to control the max_data field for some calls
metze
(This used to be commit 3cab02f6f513cf7eb3d8863e62952766bb4d908f)
Diffstat (limited to 'source4/libcli/raw')
-rw-r--r-- | source4/libcli/raw/interfaces.h | 1 | ||||
-rw-r--r-- | source4/libcli/raw/rawioctl.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h index e0696b45ec..d98b5de370 100644 --- a/source4/libcli/raw/interfaces.h +++ b/source4/libcli/raw/interfaces.h @@ -1716,6 +1716,7 @@ union smb_ioctl { uint32_t function; BOOL fsctl; uint8_t filter; + uint32_t max_data; DATA_BLOB blob; } in; struct { diff --git a/source4/libcli/raw/rawioctl.c b/source4/libcli/raw/rawioctl.c index 77c8c80158..356852edd8 100644 --- a/source4/libcli/raw/rawioctl.c +++ b/source4/libcli/raw/rawioctl.c @@ -77,7 +77,7 @@ static struct smbcli_request *smb_raw_ntioctl_send(struct smbcli_tree *tree, nt.in.max_setup = 0; nt.in.max_param = 0; - nt.in.max_data = 0; + nt.in.max_data = parms->ntioctl.in.max_data; nt.in.setup_count = 4; nt.in.setup = (uint16_t *)setup; SIVAL(setup, 0, parms->ntioctl.in.function); |