Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:23:00 +0000 (20:23 -0800)
committerJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:23:00 +0000 (20:23 -0800)
commita5715420e37b98038fe8f2c3028e4c6938400eed
tree2f06da33a5bc0a9293d97a05e61bd9c6dc55ab32
parenta108eb4fdb565cc6580a15f3d9221f8b9f863fe6
Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves data in the pipe on short write.

Split out the functionality of drain_socket() into a separate
function from default_sys_recvfile().
source3/lib/recvfile.c