s3-server: remove smb2 ioctl error response assumption
authorDavid Disseldorp <ddiss@suse.de>
Wed, 12 Oct 2011 15:05:47 +0000 (17:05 +0200)
committerDavid Disseldorp <ddiss@samba.org>
Wed, 19 Sep 2012 03:59:03 +0000 (05:59 +0200)
commit7714092db539036c65df7bfe426396d0c138f2b8
tree938999428f039192cc5ef5d2488a7c848a7554ce
parentbfe1cc402dcdec3df9f149f6635998c7a31c9fab
s3-server: remove smb2 ioctl error response assumption

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
with NT_STATUS_INVALID_PARAMETER.
source3/smbd/smb2_ioctl.c
source4/libcli/smb2/ioctl.c
source4/torture/smb2/ioctl.c