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)
committerKarolin Seeger <kseeger@samba.org>
Wed, 4 Jan 2012 20:28:13 +0000 (21:28 +0100)
commit7924e459b6677ba3500afff4b78f797e1e0ad83d
tree175d82d0ab82c17c4a25d724b544041929ac064e
parentb3f344b5b52096715eb5670b146f477a67af8245
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)
source3/lib/recvfile.c