pkgsrc/net/rsync/patches/patch-aa
grant cc254d6ac0 Updated rsync to 2.6.0.
Major changes since 2.5.7:

    * "ssh" is now the default remote shell for rsync.  If you want to
      change this, configure like this:  "./configure --with-rsh=rsh".
    * Added --files-from, --no-relative, --no-implied-dirs, and --from0.
      Note that --from0 affects the line-ending character for all the
      files read by the --*-from options. (Wayne Davison)
    * Length of csum2 is now per-file starting with protocol version
      27. (J.W. Schultz)
    * Per-file dynamic block size is now sqrt(file length).  The
      per-file checksum size is determined according to an algorithm
      provided by Donovan Baarda which reduces the probability of rsync
      algorithm corrupting data and falling back using the whole md4
      checksums. (J.W. Schultz, Donovan Baarda)
    * The --stats option no longer includes the (debug) malloc summary
      unless the verbose option was specified at least twice.
    * Added a new error/warning code for when files vanish from the
      sending side.  Made vanished source files not interfere with the
      file-deletion pass when --delete-after was specified.
    * Various trailing-info sections are now preceded by a newline.
    * Many bug-fixes.

Update provided by Min Sik Kim in PR pkg/24146.
2004-01-20 05:16:42 +00:00

13 lines
467 B
Text

$NetBSD: patch-aa,v 1.9 2004/01/20 05:16:42 grant Exp $
--- match.c.orig 2003-12-06 15:07:27.000000000 -0600
+++ match.c
@@ -256,7 +256,7 @@ static void hash_search(int f,struct sum
running match, the checksum update and the
literal send. */
if (offset > last_match
- && offset-last_match >= CHUNK_SIZE+s->blength
+ && offset >= last_match+CHUNK_SIZE+s->blength
&& end-offset > CHUNK_SIZE) {
matched(f,s,buf,offset - s->blength, -2);
}