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)
committerJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 07:05:35 +0000 (08:05 +0100)
commite39df67669f61056692736db9c8dc16fbf2c3624
treefc923636d9ce8f5f6c82bae6355429c8af922c34
parent5e6263960aaf1a5f9993cb7bb5646d36ff92b9cc
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
source3/smbd/reply.c