[Bug 11726] rsync fails to copy directory containing ancestor symlink (..)

samba-bugs at samba.org samba-bugs at samba.org
Wed Feb 10 04:48:27 UTC 2016


https://bugzilla.samba.org/show_bug.cgi?id=11726

--- Comment #4 from cyphar at cyphar.com ---
(In reply to Wayne Davison from comment #3)
> Yes, if you tell rsync to copy the symlinks it does it. If you have one or more looping symlinks then you need to exclude them from the copy or not use --copy-links.

That's just patently ridiculous. cp -r doesn't fail when you ask it to copy a
directory that has symlink loops because "that's what you asked me to do". It
literally just takes doing some fairly trivial checks before adding extra files
to file_list (i.e. does the path we're adding resolve to an ancestor of a path
we've already seen?).

-- 
You are receiving this mail because:
You are the QA Contact for the bug.



More information about the rsync mailing list