Fixed the printf in the support/rsyncsums perl script that can maintain
authorWayne Davison <wayned@samba.org>
Sun, 17 Jun 2007 23:26:55 +0000 (23:26 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 17 Jun 2007 23:26:55 +0000 (23:26 +0000)
a hierarchy of .rsyncsums files.

checksum-updating.diff

index 301ba5e..14de729 100644 (file)
@@ -862,7 +862,7 @@ we should still update the .rsyncsums file if we compute a new checksum.
 +      foreach my $fn (sort keys %cache) {
 +          my $ref = $cache{$fn};
 +          my($size, $mtime, $ctime, $sum4, $sum5) = @$ref;
-+          printf FP '%s %s %10d %10d %s' . "\n", $sum4, $sum5, $size, $mtime, $ctime, $fn;
++          printf FP '%s %s %10d %10d %10d %s' . "\n", $sum4, $sum5, $size, $mtime, $ctime, $fn;
 +
 +          $latest_time = $mtime if $mtime > $latest_time;
 +          $latest_time = $ctime if $ctime > $latest_time;