Strange behaviour with --max-delete option

Wayne Davison wayned at samba.org
Mon Oct 18 20:43:43 GMT 2004


On Mon, Oct 18, 2004 at 01:13:56PM -0700, Laurens wrote:
> It deletes 2 files while --max-delete=1 was specified.
> I think it has something to do with deletion_count in delete_files
> (receiver.c).

Yes, the ">" should really be ">=" (a simple off-by-one error).  The
line should look like this when fixed:

    if (max_delete && deletion_count >= max_delete)

Thanks for the report!

..wayne..


More information about the rsync mailing list