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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]


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.
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to