Fix bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe...
authorJeremy Allison <jra@samba.org>
Sun, 25 Dec 2011 05:12:09 +0000 (21:12 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Jan 2012 20:30:32 +0000 (21:30 +0100)
commite1cbc6b4ac55d2cdb55bcfa4dbcd667cedf6ffb2
tree64af276913f6a238a2ad85e5f15ad200f69708cf
parentb217fc3ac18c04011861217eb5e0b596554ab88a
Fix bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe on short write

Bug found and fix suggested by Andrew Bartlett.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sun Dec 25 07:46:38 CET 2011 on sn-devel-104
(cherry picked from commit eb617374a673bb1189dd9b6bccbf3f1d9fb91010)
(cherry picked from commit b3f344b5b52096715eb5670b146f477a67af8245)
source3/lib/recvfile.c