DO NOT REPLY [Bug 7450] New: When a single file is specified, the exclusion of it in the exclude-from file is ignored
samba-bugs at samba.org
samba-bugs at samba.org
Fri May 21 15:45:26 MDT 2010
https://bugzilla.samba.org/show_bug.cgi?id=7450
Summary: When a single file is specified, the exclusion of it in
the exclude-from file is ignored
Product: rsync
Version: 3.0.7
Platform: x64
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: gordan at bobich.net
QAContact: rsync-qa at samba.org
If a single file is specified for rsyncing, and that file is specified in the
exclude file, it gets rsynced anyway. This is broken behaviour - if there is
such a conflict of instruction, it should fail "safe" and do nothing.
e.g.:
$ cat /tmp/test/exclude
/tmp/test/1/foo
$ touch /tmp/test/1/foo
$ ls -laR /tmp/test/
/tmp/test/:
total 4
drwxrwxr-x 4 gordan gordan 100 May 21 22:22 .
drwxrwxrwt 13 root root 280 May 21 22:31 ..
drwxrwxr-x 2 gordan gordan 60 May 21 22:05 1
drwxrwxr-x 2 gordan gordan 40 May 21 22:23 2
-rw-rw-r-- 1 gordan gordan 16 May 21 22:22 exclude
/tmp/test/1:
total 4
drwxrwxr-x 2 gordan gordan 60 May 21 22:05 .
drwxrwxr-x 4 gordan gordan 100 May 21 22:22 ..
-rw-rw-r-- 1 gordan gordan 5 May 21 22:05 foo
/tmp/test/2:
total 0
drwxrwxr-x 2 gordan gordan 40 May 21 22:23 .
drwxrwxr-x 4 gordan gordan 100 May 21 22:22 ..
$ rsync --exclude-from=/tmp/test/exclude /tmp/test/1/foo /tmp/test/2/
$ ls -la /tmp/test/2/
total 4
drwxrwxr-x 2 gordan gordan 60 May 21 22:42 .
drwxrwxr-x 4 gordan gordan 100 May 21 22:22 ..
-rw-rw-r-- 1 gordan gordan 5 May 21 22:42 foo
Tested on both x86 and x64, and rsync versions 2.6.8 and 3.0.7, so this seems
to be a long standing issue.
--
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