Problem with rsync-2.6.8 and -c (checksum)

Wayne Davison wayned at samba.org
Tue May 23 15:52:07 GMT 2006


On Tue, May 23, 2006 at 11:40:48AM +0200, Andreas Fehr wrote:
> Well, I changed '-a' to '-rlpgoD' (according to the man page, it maps
> to '-rlptgoD'). But now it's worse.... each call of rsync copies all
> the files from source to new.

As Matt mentioned, this was fixed recently in CVS.  The fix can be
applied to 2.6.8 via the attached one-line patch.

..wayne..
-------------- next part --------------
--- generator.c	2006-04-17 23:38:58
+++ generator.c	2006-05-23 08:45:39
@@ -628,7 +628,7 @@ static int try_dests_reg(struct file_str
 		case 2:
 			if (!unchanged_attrs(file, stp))
 				continue;
-			if ((always_checksum || ignore_times)
+			if (always_checksum && preserve_times
 			 && cmp_time(stp->st_mtime, file->modtime))
 				continue;
 			best_match = j;


More information about the rsync mailing list