Using --keep-dirlinks : recursive symlinks problem

Ivan Manida Ivan.Manida at Sun.COM
Sun Aug 22 06:42:56 GMT 2004

It is not infinite, but it is inconvenient since rsync would generate a transfer error. I think it makes sense to detect such symlinks and have an option which would modify copy-links and keep-dirlinks behavior, since it's not always possible to modify the sending filesystem to correct the loop.

----- Original Message -----
From: Wayne Davison
Date: Sunday, August 22, 2004 8:05 am
> Yeah, that's what all older rsyncs would do when --copy-links was used
> in that situation (--copy-links used to have the unexpected side-
> effecton the receiver of the new --keep-dirlinks option).  I also 
> note that a
> looping symlink on the sender would result in a similar loop 
> trying to
> find all the files to send (it's not infinite, since the names will
> eventually either exceed the symlink recursion limit or the maximum
> path-length).
> I'm debating whether this is something that should be guarded 
> against or
> not.  Opinions welcomed.

More information about the rsync mailing list