DO NOT REPLY [Bug 6893] New: the symbolic link to the directory is gone when only some of the files are to be sync'ed

samba-bugs at samba.org samba-bugs at samba.org
Thu Nov 12 22:14:45 MST 2009


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

           Summary: the symbolic link to the directory is gone when only
                    some of the files are to be sync'ed
           Product: rsync
           Version: 3.0.6
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: critical
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: avoker.s1 at gmail.com
         QAContact: rsync-qa at samba.org


How to reproduce
================

Suppose we have hosts "src" and "dst" and we have 
   testfolder/
   test -> testfolder/
under /home and 

[root at heron home]# ll /home/test/
total 0
-rw-r--r-- 1 root root 0 Nov 13 15:29 a
-rw-r--r-- 1 root root 0 Nov 13 15:29 b
-rw-r--r-- 1 root root 0 Nov 13 15:29 c

we have file test.list which has contents below:
   /home/test/a

Now we run on host "src" following command:
   rsync -avzog -r --super -e ssh --files-from=test.list --delete / dst:/

then rsync will ignore the fact that /home/test is a valid softlink to an
existing directory on "dst" and will remove it and create a new directory
"test" with file "a" underneath.

This is serious. For example if you only want to sync "smb" script under
/etc/init.d, you'll end up with a new /etc/init.d with only "smb" inside it on
the target machine because normally /etc/init.d->/etc/rc.d/init.d. Then you
won't be able to boot up the system.


-- 
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