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)
committerJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:45:10 +0000 (20:45 -0800)
commit5e6263960aaf1a5f9993cb7bb5646d36ff92b9cc
tree1cb1ca464ce0b656769855bf51f13f2443e31551
parenta5715420e37b98038fe8f2c3028e4c6938400eed
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.
source3/lib/recvfile.c