s3: If sendfile returns 0 bytes read, fall back to the normal read path
authorTim Prouty <tprouty@samba.org>
Fri, 20 Feb 2009 21:28:36 +0000 (13:28 -0800)
committerTim Prouty <tprouty@samba.org>
Sat, 21 Feb 2009 23:42:37 +0000 (15:42 -0800)
commit0dcfa9ce1baa9f2074a002fdb5c8b88cc5db28db
tree182e177759cb3f611f50b44799dfc21e9ecd53bd
parent1ff9696306894c136015f83456e4c6e039e31e26
s3: If sendfile returns 0 bytes read, fall back to the normal read path

This allows sendfile implementations that are atomic to avoid having
to send zeros or kill the client connection on a short read (usually
the file was truncated).
source3/smbd/reply.c