[Bug 11726] New: --copy-links cause rsync to fail with ancestor symlink (..)

samba-bugs at samba.org samba-bugs at samba.org
Tue Feb 9 12:45:03 UTC 2016


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

            Bug ID: 11726
           Summary: --copy-links cause rsync to fail with ancestor symlink
                    (..)
           Product: rsync
           Version: 3.1.2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: core
          Assignee: wayned at samba.org
          Reporter: cyphar at cyphar.com
        QA Contact: rsync-qa at samba.org

If you have a directory created like so:

% mkdir -p from/dir/
% ln -s .. from/dir/loop
% rsync -a --copy-links from to
rsync:
readlink_stat("/tmp/from/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop/dir/loop")
failed: Too many levels of symbolic links (40)
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1178) [sender=3.1.2]

For a trivial case of infinitely recursive symlinks (in other words when you go
through a symlink that takes you to an ancestor), rsync should just declare
"that's as far as we need to go here".

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



More information about the rsync mailing list