DO NOT REPLY [Bug 6752] New: --force option doesn't work as expected/documented

samba-bugs at samba.org samba-bugs at samba.org
Tue Sep 22 20:29:41 MDT 2009


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

           Summary: --force option doesn't work as expected/documented
           Product: rsync
           Version: 3.0.6
          Platform: x64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at samba.org
        ReportedBy: ciolfi at mathworks.com
         QAContact: rsync-qa at samba.org


Run following script and you'll receive:

cannot delete non-empty directory: s1/CVS
delete non-empty directory: s1/CVS
cannot delete non-empty directory: s1

which conflicts with the doc on --force. Googling this also brings up a number
of others with the same problem. The source of the problem is the exclude
filter. 



-------------------- force_bug.sh -----
#!/bin/csh

# Reproduction steps where --force doesn't force deletion.

rm -rf src dst

mkdir -p dst/s1/CVS
echo foo > dst/s1/CVS/Root

mkdir -p src/s2/foo.txt

rsync -az --filter='exclude, /**/CVS/Root' --filter='protect, /**/CVS/Root'
--fo
rce --delete --delete-excluded src/ dst


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