Patch for 2.6.7 (affects --exclude used with --relative)
[email protected] Fri, 17 Mar 2006 10:25:06 -0800
| Newsgroups | gmane.network.rsync.announce,gmane.network.rsync.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0785315701==
Content-Type: multipart/signed; micalg=pgp-sha1;
protocol="application/pgp-signature"; boundary="azLHFNyN32YCQGCU"
Content-Disposition: inline
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
For anyone combining --exclude with the --relative option and/or for
those who have packaged 2.6.7 binaries:
Please apply the following one-line patch to the code. It fixes a bug
where an absolute --exclude without wildcards would fail to match if
--relative is in effect.
--- exclude.c 28 Jan 2006 00:14:02 -0000 1.128
+++ exclude.c 13 Mar 2006 01:49:56 -0000
@@ -562,7 +562,7 @@ static int rule_matches(char *name, stru
if (litmatch_array(pattern, strings, slash_handling))
return ret_match;
} else if (anchored_match) {
- if (strcmp(name,pattern) == 0)
+ if (strcmp(strings[0], pattern) == 0)
return ret_match;
} else {
int l1 = strlen(name);
I'm anticipating that version 2.6.8 should be released in a week or two
to fix this bug and make any other minor changes that seem appropriate.
..wayne..
--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
iD8DBQFEGv8CbIWfsUuWqMURAsV8AJ9HmQFwzKD8R0u2x+Ir5EN5tFHVrQCgmbZF
1mXHpfASWXIPNxFZ53dxri8=
=OzzK
-----END PGP SIGNATURE-----
--azLHFNyN32YCQGCU--
--===============0785315701==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
rsync-announce mailing list
[email protected]
https://lists.samba.org/mailman/listinfo/rsync-announce
--===============0785315701==--