DO NOT REPLY [Bug 7953] New: -x flag prevents symlink on source filesystem from overwriting dest dir

samba-bugs at samba.org samba-bugs at samba.org
Thu Feb 10 22:04:35 MST 2011


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

           Summary: -x flag prevents symlink on source filesystem from
                    overwriting dest dir
           Product: rsync
           Version: 3.0.7
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: bhall at wetafx.co.nz
         QAContact: rsync-qa at samba.org


rsync will not recursively delete a directory on the destination file system
when the -x flag is used and the source is a symlink on a different file
system.
This is inconsistent with the behaviour seen when rsync'ing between directories
in the same context.

Commands to reproduce:

mkdir /testing
mount -t tmpfs -o size=1M,nr_inodes=1000,mode=0700 tmpfs /testing
mkdir /testing/bar
ln -s /testing/bar /testing/foo
mkdir --parents /tmp/foo/bar/baz
rsync -arvx --delete --force /testing/foo /tmp

Result:
sending incremental file list
cannot delete non-empty directory: foo
could not make way for new symlink: foo

sent 41 bytes  received 12 bytes  106.00 bytes/sec
total size is 12  speedup is 0.23
rsync error: some files/attrs were not transferred (see previous errors) (code
23) at main.c(1060) [sender=3.0.7]


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