Final part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 05:19:08 +0000 (21:19 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Mar 2012 19:54:50 +0000 (20:54 +0100)
commit1e4d95e1c72b60f73afb6e2473954d04bd0827a8
tree14be9376b20ccbb0994e1ea93be6e3852bafef7f
parentb5238513a375c9a09d66cee4b6a72f4d29af6ce6
Final part of fix for bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe on short write.

The code to set a DOS error on short writeX return is amazingly
legacy code, and also breaks the reply as fixup_chain_error_packet()
enforces a 2-byte wct on any reply where smb_rcls != 0.

Found in testing by Andrew Bartlett. Thanks Andrew !

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Dec 31 08:05:35 CET 2011 on sn-devel-104
(cherry picked from commit e39df67669f61056692736db9c8dc16fbf2c3624)
(cherry picked from commit 627f57f0714f257c6082b21447d122935c6e92e2)
(cherry picked from commit 610053a6dbe0fc109e3e73c1f7cb26ec8dc48c11)
source3/smbd/reply.c