Second part of fix for bug #8679 - recvfile code path using splice() on Linux leaves...
commit87dd891a0d4fd7101b47f6f6aa310b4787acf39f
authorJeremy Allison <jra@samba.org>
Sat, 31 Dec 2011 04:23:00 +0000 (30 20:23 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Mar 2012 19:54:43 +0000 (5 20:54 +0100)
treef1a579555cd4a59815af11db3045d450d4d7a17e
parent7413c4ba9fe03c240a61edcd549c4716e1a28653
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().
(cherry picked from commit a5715420e37b98038fe8f2c3028e4c6938400eed)
(cherry picked from commit 7924e459b6677ba3500afff4b78f797e1e0ad83d)
(cherry picked from commit 1076d0d0491ca9d988c8095514838975e6fce4ec)
source3/lib/recvfile.c