summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-05-22 15:06:20 -0700
committerWayne Davison <wayne@opencoder.net>2020-05-22 17:59:12 -0700
commit55bb4dab7a4f132537b5ed93e504ffc618b643b9 (patch)
tree9894828c68720a1141876e6403d5aa50e2d2373b /options.c
parent5fa4209ca0ce67f18fc9fd5da2ac6a83b4f7d34e (diff)
downloadrsync-55bb4dab7a4f132537b5ed93e504ffc618b643b9.tar.gz
Some checksum improvements
- Improve csum negotation logic. - Define the csum names in a single structure. - Add --debug=CSUM.
Diffstat (limited to 'options.c')
-rw-r--r--options.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/options.c b/options.c
index e2adcf83..6926f96c 100644
--- a/options.c
+++ b/options.c
@@ -276,6 +276,7 @@ static struct output_struct debug_words[COUNT_DEBUG+1] = {
DEBUG_WORD(CHDIR, W_CLI|W_SRV, "Debug when the current directory changes"),
DEBUG_WORD(CONNECT, W_CLI, "Debug connection events (levels 1-2)"),
DEBUG_WORD(CMD, W_CLI, "Debug commands+options that are issued (levels 1-2)"),
+ DEBUG_WORD(CSUM, W_CLI|W_SRV, "Debug checksum negotiation"),
DEBUG_WORD(DEL, W_REC, "Debug delete actions (levels 1-3)"),
DEBUG_WORD(DELTASUM, W_SND|W_REC, "Debug delta-transfer checksumming (levels 1-4)"),
DEBUG_WORD(DUP, W_REC, "Debug weeding of duplicate names"),
@@ -1932,7 +1933,7 @@ int parse_arguments(int *argc_p, const char ***argv_p)
/* Call this early to verify the args and figure out if we need to force
* --whole-file. Note that the parse function will get called again later,
* just in case an "auto" choice needs to know the protocol_version. */
- parse_checksum_choice();
+ parse_checksum_choice(0);
} else
checksum_choice = NULL;