Overwriting source file leaves destination full of zeros

Wayne Davison wayned at samba.org
Mon Jan 30 20:11:17 GMT 2006

On Mon, Jan 30, 2006 at 02:43:42PM +0000, Jon Mitchell wrote:
> Instead of the destination file being truncated, or an error being
> raised and the destination file removed, I get a file of the correct
> length, but mostly full of nulls where previously there were none.

This is something that has been fixed in CVS, and will be released soon
in version 2.6.7.  Older versions of rsync were not properly setting an
error condition when getting an early EOF (just when the read failed for
other reasons).

Many thanks for the full details of your error report.


More information about the rsync mailing list