Third part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:45:10 +0000 (20:45 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Jan 2012 20:30:39 +0000 (21:30 +0100)
commitb0bc8bec29bce808253adf2a95b7fdb7d36a176f
tree864b9faf4cbd5f11862b5695939c8cf49d37d6a7
parent1076d0d0491ca9d988c8095514838975e6fce4ec
Third part of fix for bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe on short write.

Fix default_sys_recvfile() to correctly cope with
short writes. Return the amount written. Return
-1 and set errno if no data could be written.
(cherry picked from commit 5e6263960aaf1a5f9993cb7bb5646d36ff92b9cc)
(cherry picked from commit ec9b07e84e806705e22f0cf2eb527fed14efac55)
source3/lib/recvfile.c