rsync and broken symlinks

Paul Slootman paul at
Thu Dec 16 21:27:20 GMT 2004

On Thu 16 Dec 2004, Wayne Davison wrote:
> As for the fix, one could argue that "ignore nonreadable" has a bug in
> it when dealing with symlinks -- if readlink() worked, the symlink was
> readable, so there is no need to call access() on it.  The appended
> patch changes this so that rsync doesn't ever use access() on a symlink.
> Comments or disagreement?

Just to be certain - readlink() is only called if --copy-links is NOT
specified? In that case, I agree.

Paul Slootman

More information about the rsync mailing list