The Samba-Bugzilla – Attachment 15199 Details for
Bug 13974
Old max block size isn't allowed in options
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rsync_allow_old_max_block_size_in_options.patch
rsync_allow_old_max_block_size_in_options.patch (text/plain), 642 bytes, created by
Matthew Stapleton
on 2019-05-29 05:26:06 UTC
(
hide
)
Description:
rsync_allow_old_max_block_size_in_options.patch
Filename:
MIME Type:
Creator:
Matthew Stapleton
Created:
2019-05-29 05:26:06 UTC
Size:
642 bytes
patch
obsolete
>diff -Naur rsync-3.1.3/options.c rsync-3.1.3-2/options.c >--- rsync-3.1.3/options.c 2018-01-15 13:55:07.000000000 +1000 >+++ rsync-3.1.3-2/options.c 2019-05-29 12:59:26.470327515 +1000 >@@ -1977,9 +1977,9 @@ > } > #endif > >- if (block_size > MAX_BLOCK_SIZE) { >+ if ( (protocol_version >= 30 & block_size > MAX_BLOCK_SIZE) || (protocol_version < 30 & block_size > OLD_MAX_BLOCK_SIZE) ) { > snprintf(err_buf, sizeof err_buf, >- "--block-size=%lu is too large (max: %u)\n", block_size, MAX_BLOCK_SIZE); >+ "--block-size=%lu is too large (max: %u)\n", block_size, protocol_version < 30 ? OLD_MAX_BLOCK_SIZE : MAX_BLOCK_SIZE); > return 0; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 13974
: 15199