Patch: Accept CR/LF line breaks in exclude files

Jordan Russell jr-list-rsync at quo.to
Wed Feb 20 09:30:53 EST 2002


--exclude-from and --cvs-exclude currently do not accept exclude files that
use CR/LF (DOS-style) line breaks. It basically behaves as if the files are
empty. This is rather annoying if the exclude files are generated by Windows
systems (e.g. if you're using --cvs-exclude and rsync'ing the contents of a
Samba share that includes .cvsignore files).

Attached is a simple 1-line patch (for 2.5.2) which "fixes" this; it strips
off any CR character at the end of the line. Could it be committed?

Jordan Russell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exclude-from.patch
Type: application/octet-stream
Size: 447 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20020219/501c27b9/exclude-from.obj


More information about the rsync mailing list