X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/94327ff0c2afd01f73c5e1c51f0babbb3a72cec9..efd5ee57867a5de86692dff3ec0067c4113980fa:/options.c?ds=sidebyside diff --git a/options.c b/options.c index 4179bfb5..47bba714 100644 --- a/options.c +++ b/options.c @@ -635,6 +635,12 @@ int parse_arguments(int *argc, const char ***argv, int frommain) } #endif + if (block_size > MAX_MAP_SIZE) { + rprintf(FINFO, "limiting block-size to %d bytes\n", + MAX_MAP_SIZE); + block_size = MAX_MAP_SIZE; + } + if (write_batch && read_batch) { rprintf(FERROR, "write-batch and read-batch can not be used together\n");