smb2_ioctl: remove ioctl error response assumptions
authorDavid Disseldorp <ddiss@suse.de>
Tue, 15 Jan 2013 16:23:01 +0000 (17:23 +0100)
committerDavid Disseldorp <ddiss@samba.org>
Mon, 15 Apr 2013 16:15:13 +0000 (18:15 +0200)
commita12d09d11e60e723d9e860731f4ecf394d569538
treeecbee78f2a288cfc98fe22d83c29ea2aaae3abe8
parentdaa8d15f3fa896818b6b56171516ef761e062d72
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>

(cherry picked from commit 65983aac12e5ecb12157b39c7bec464388716f27)
source3/smbd/smb2_ioctl.c
source4/libcli/smb2/ioctl.c
source4/torture/smb2/ioctl.c