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: way...@samba.org ReportedBy: gor...@bobich.net QAContact: rsync...@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. -- 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