DO NOT REPLY [Bug 5043] New: Qualified non-inherited filter rules may be ignored

samba-bugs at samba-bugs at
Fri Oct 26 01:17:36 GMT 2007

           Summary: Qualified non-inherited filter rules may be ignored
           Product: rsync
           Version: 2.6.9
          Platform: x64
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: core
        AssignedTo: wayned at
        ReportedBy: wolfgang.mayer at
         QAContact: rsync-qa at

It seems that under certain conditions, local filter rules where the
pattern is anchored with '/' to prevent rule propagation to sub-directories
leads to these rules being dropped entirely.

The following simplified example demonstrates the problem:

$ TESTDIR=/tmp/rsync-test
$ mkdir -p $TESTDIR/{root/{a/b,b/a/c},dst}
$ echo "- /a" > $TESTDIR/root/.rsync-filter

The following fails to exclude $TESTDIR/root/a, despite the per-directory
filter rule stating that sub-directory 'a' should not be considered:
$ cd $TESTDIR/dst
$ rsync -avvFFR $TESTDIR/root/ $TESTDIR/dst/
sending incremental file list
[sender] hiding file /tmp/rsync-test/root/.rsync-filter because of pattern
delta-transmission disabled for local transfer or --whole-file
total: matches=0  hash_hits=0  false_alarms=0 data=0

Running rsync without '-R' works as expected, and changing into a directory
above $TESTDIR/root and using the relative path to $TESTDIR/root also seems
to work without problems.

We're running rsync version 2.6.9 protocol version 29, on Fedora7/x86_64
and CentOS5/{i686,x86_64}. The same behaviour appears in the latest version
from CVS [3.0.0pre2  protocol version 30.PR12].

Configure bugmail:
------- 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