Wayne Davison [Thu, 17 Apr 2003 23:44:25 +0000 (23:44 +0000)]
Only display the malloc stats if we're at least double-verbose (and
--stats was specified, of course). Also made the output of the short
(2-line) transfer summary get prefixed with an empty line in all
cases (not just with --stats).
- Per-file dynamic block size is now sqrt(file length).
- The per-file checksum size is determined according
to an algorythm provided by Donovan Baarda which
reduces the probability of rsync algorithm
corrupting data and falling back using the whole md4
checksums.
- for protocol version >= 27, mdfour_tail() is called when the block size
(including checksum_seed) is a multiple of 64. Previously it was not
called, giving the wrong MD4 checksum.
- for protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
required by the RFC. Previously only a 32 bit bit counter was used,
causing incorrect MD4 file checksums for file sizes >= 512MB - 4.
-- Craig Barratt
versions prior to 1.7.0 (protcol version 17) cannot talk to
protocol versions > 20 so bumping up the minimum protocol
version and excising the pre-17 cruft.
Paul Green [Wed, 9 Apr 2003 21:10:18 +0000 (21:10 +0000)]
Fix bug reported by engard.ferenc at innomed.hu whereby using the %f format
in sprintf with a value like 0.025 produced 0.250. We were dropping the
leading zeros before the fractional digits.
Wayne Davison [Sun, 30 Mar 2003 23:00:40 +0000 (23:00 +0000)]
Open the file in BINARY fd mode, handle the normal line-ending characters
better than before, and add support for the new --from0 option (which changes
the line separator to a null).
Wayne Davison [Fri, 21 Mar 2003 18:33:48 +0000 (18:33 +0000)]
- Fixed lots of line-indentation problems, including a really huge section
of non-batch-mode code that was indented at the same level as its
surrounding "if" statement.
- Moved the heavily-used am_* flags into global extern vars instead of
externing them again and again in individual functions.
- Got rid of line-ending whitespace.
Wayne Davison [Wed, 12 Feb 2003 09:15:23 +0000 (09:15 +0000)]
The sender no longer removes the duplicate names from the file list -- we
let the receiver do that, since they are the one that requests names and
we want to be sure the sender has any name the receiver may ask for.
Paul Green [Wed, 5 Feb 2003 18:41:53 +0000 (18:41 +0000)]
Update packaging spec files per patch submitted by Horst von Brand.
In the future, we need to be sure to keep *.spec and *.spec.tmpl
identical...the release macro produces *.spec from *.spec.tmpl.
David Dykstra [Mon, 27 Jan 2003 04:41:30 +0000 (04:41 +0000)]
Move the sleep to workaround the default modify-window of 1 on Cygwin to
the beginning of "checkit" rather than the end of "hands_setup" because
sometimes files are modified just before checkit is called and the copy
finishes within one second so they're considered to be the same time.
I don't think this would be a problem in real life, so just change the
test.
David Dykstra [Mon, 27 Jan 2003 03:52:42 +0000 (03:52 +0000)]
Insert a 100ms sleep just before sending the USR2 signal to the
child receiver process to prevent some hangs on Cygwin. Anthony
Heading discovered the workaround first and suggested 30ms, and
Greger Cronquist had better luck with 100ms.
David Dykstra [Mon, 27 Jan 2003 03:35:08 +0000 (03:35 +0000)]
Prevent the "Connection reset by peer" messages often seen from Cygwin.
Result of a lot of discussion over the last year and a half. Based on
a patch from Randy O'Meara, cleaned up a bit by Max Bowsher.
David Dykstra [Sun, 26 Jan 2003 03:53:34 +0000 (03:53 +0000)]
Better fix for infinite recursion; don't return from exit_cleanup
unless the nesting is already pretty deep, because there are normal
cases where exit_cleanup is nested shallowly. Patch from Marc Espie,
posted by Brian Poole.
David Dykstra [Sun, 26 Jan 2003 03:46:54 +0000 (03:46 +0000)]
Open config files in text mode when O_TEXT is defined. This helps on
Cygwin when the config files are on a filesystem that is mounted in
binary mode. Patch from Ville Herva.
David Dykstra [Sun, 26 Jan 2003 03:34:19 +0000 (03:34 +0000)]
Tests that use hands_setup to make a test file directory and right
afterward make a copy were failing on cygwin because the default
--modify-windows now 1 on Cygwin. Adding a 2 second sleep at the end of
hands_setup so that hopefully the tests will succeed because the copy
will be made more than 1 second away from the original.
David Dykstra [Fri, 24 Jan 2003 22:07:22 +0000 (22:07 +0000)]
Change default of --modify-window on Cygwin from 2 to 1 because that's all
that's needed on FAT filesystems. NTFS filesystems can do with a window of
0, but it shouldn't hurt because it's highly unlikely that any given file
will be modified within one second of the time that rsync last copied it.
Wayne Davison [Tue, 21 Jan 2003 19:27:11 +0000 (19:27 +0000)]
Separated a `cat "..."` command out from inside a double-quoted string
so that we don't run afoul of some shells quoting quirks. (As Brian
Poole suggested.)