smb2_ioctl: remove ioctl error response assumptions
authorDavid Disseldorp <ddiss@suse.de>
Tue, 15 Jan 2013 16:23:01 +0000 (17:23 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 16 Jan 2013 22:15:07 +0000 (23:15 +0100)
commit65983aac12e5ecb12157b39c7bec464388716f27
tree1645ad9904b5c477666ccdb050957d2458f90118
parente38d9f71d90e6b20a027d91d4768d91378728621
smb2_ioctl: remove ioctl error response assumptions

MS-SMB2 3.3.4.4 documents cases where a ntstatus indicating an error
should not be considered a failure. In such a case the output data
buffer should be sent to the client rather than an error response
packet.

Add a new fsctl copy_chunk test to confirm field limits are sent back
in response to an oversize chunk request.

Reviewed by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_ioctl.c
source4/libcli/smb2/ioctl.c
source4/torture/smb2/ioctl.c