DO NOT REPLY [Bug 5043] New: Qualified non-inherited filter rules
may be ignored
samba-bugs at samba.org
samba-bugs at samba.org
Fri Oct 26 01:17:36 GMT 2007
https://bugzilla.samba.org/show_bug.cgi?id=5043
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 samba.org
ReportedBy: wolfgang.mayer at unisa.edu.au
QAContact: rsync-qa at samba.org
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
.rsync-filter
delta-transmission disabled for local transfer or --whole-file
/tmp/
/tmp/rsync-test/
/tmp/rsync-test/root/
/tmp/rsync-test/root/a/
/tmp/rsync-test/root/a/b/
/tmp/rsync-test/root/b/
/tmp/rsync-test/root/b/a/
/tmp/rsync-test/root/b/a/c/
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: 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