[Bug 2409] New: rsync doesn't handle directories changing into symlinks well

samba-bugs at samba.org samba-bugs at samba.org
Wed Mar 2 15:46:08 GMT 2005


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

           Summary: rsync doesn't handle directories changing into symlinks
                    well
           Product: rsync
           Version: 2.6.3
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: arthur at west.nl
         QAContact: rsync-qa at samba.org


If I change a direcotry to a symlink with the same name on the source rsync
produces an error:

% mkdir -p foo/bar/foo bar
% rsync -a -v foo/ bar/
building file list ... done
./
bar/
bar/foo/

sent 90 bytes  received 20 bytes  220.00 bytes/sec
total size is 0  speedup is 0.00
% rm -rf foo/bar
% ln -s foo foo/bar
% rsync -a -v foo/ bar/
building file list ... done
./
rsync: delete_file: rmdir "/tmp/1/bar/bar" failed: Directory not empty (39)
rsync: symlink "/tmp/1/bar/bar" -> "foo" failed: File exists (17)

sent 90 bytes  received 20 bytes  73.33 bytes/sec
total size is 3  speedup is 0.03
rsync error: some files could not be transferred (code 23) at main.c(702)

-- 
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.


More information about the rsync mailing list