diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-05-22 15:06:20 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-05-22 17:59:12 -0700 |
commit | 55bb4dab7a4f132537b5ed93e504ffc618b643b9 (patch) | |
tree | 9894828c68720a1141876e6403d5aa50e2d2373b /options.c | |
parent | 5fa4209ca0ce67f18fc9fd5da2ac6a83b4f7d34e (diff) | |
download | rsync-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |