get_local_name

Wayne Davison wayned at samba.org
Thu Mar 2 04:00:18 GMT 2006


On Fri, Feb 24, 2006 at 06:12:35PM -0500, Matt McCutchen wrote:
> Now I see that cp refuses to overwrite a file with any directory,
> empty or not.

Yeah.  I have been considering making rsync behave that way.  My only
hesitation was just how long rsync has been allowing this to occur.
However, I doubt that this is a behavior that people use (not even
accidentally), so I just checked in a change to disallow this.

> (2) --keep-dirlinks is obeyed.

By this you mean you're changing the default behavior of rsync so that
it doesn't treat a destination arg that ends in a symlink to a directory
as if it were a directory unless --keep-dirlinks was specified.  I don't
think I want to make that big of a change to rsync's behavior.

> (3) If rsync cannot stat the destination, it errors out immediately.

Yeah, it would be better to mention the failed stat than to go on a bit
and mention either a failed push_dir or a failed mkdir.  I've also made
this change.

Thanks!

..wayne..


More information about the rsync mailing list