Third part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
commitec9b07e84e806705e22f0cf2eb527fed14efac55
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:45:10 +0000 (30 20:45 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Jan 2012 20:28:15 +0000 (4 21:28 +0100)
tree07d1e9a20d12a64938bcb91677133527f4071f4b
parent7924e459b6677ba3500afff4b78f797e1e0ad83d
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)
source3/lib/recvfile.c