strange behaviour with -C
Wayne Davison
wayned at samba.org
Mon Feb 9 05:41:28 GMT 2004
On Sun, Feb 08, 2004 at 04:21:01AM +0100, Christoph Schindler wrote:
> hop at krautesel:/var/tmp$ rsync -Can from/ to/
> The files that are not copied over to to/ are chosen at random, it
> seems, altough there are several patterns to be seen:
This is a bug that slipped into 2.6.0 that is fixed in the current CVS
source -- namely that the local excludes from a subdirectory are put
into the global exclude list rather than the local one that would only
affect that one subdir. There's a single line that changed in flist.c:
--- flist.c 13 Jan 2004 06:27:30 -0000 1.164
+++ flist.c 17 Jan 2004 01:16:49 -0000 1.165
@@ -942,7 +942,7 @@ static void send_directory(int f, struct
if (cvs_exclude) {
if (strlen(fname) + strlen(".cvsignore") <= MAXPATHLEN - 1) {
strcpy(p, ".cvsignore");
- add_exclude_file(&exclude_list,fname,MISSING_OK,ADD_EXCLUDE);
+ add_exclude_file(&local_exclude_list,fname,MISSING_OK,ADD_EXCLUDE);
} else {
io_error |= IOERR_GENERAL;
rprintf(FINFO,
..wayne..
More information about the rsync
mailing list