X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f98c60bfa8c755b59b0299d7e656bbb298b083c5..aa0b9ca174023a4f9b0cfc830a76b6e170982203:/options.c diff --git a/options.c b/options.c index cf705dcd..5db7d62c 100644 --- a/options.c +++ b/options.c @@ -88,6 +88,7 @@ int max_delete = 0; int ignore_errors = 0; int modify_window = 0; int blocking_io = -1; +int checksum_seed = 0; unsigned int block_size = 0; @@ -125,6 +126,7 @@ int quiet = 0; int always_checksum = 0; int list_only = 0; +#define FIXED_CHECKSUM_SEED 32761 #define MAX_BATCH_PREFIX_LEN 256 /* Must be less than MAXPATHLEN-13 */ char *batch_prefix = NULL; @@ -551,11 +553,13 @@ int parse_arguments(int *argc, const char ***argv, int frommain) case OPT_WRITE_BATCH: /* popt stores the filename in batch_prefix for us */ write_batch = 1; + checksum_seed = FIXED_CHECKSUM_SEED; break; case OPT_READ_BATCH: /* popt stores the filename in batch_prefix for us */ read_batch = 1; + checksum_seed = FIXED_CHECKSUM_SEED; break; case OPT_LINK_DEST: