From: Wayne Davison Date: Mon, 27 Sep 2021 17:16:15 +0000 (-0700) Subject: Help avoid a --sparse --inplace bug in older rsyncs. X-Git-Tag: v3.2.4pre1~57 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec57c57baf848718bbab93fa0c597d15718acc5a;p=thirdparty%2Frsync.git Help avoid a --sparse --inplace bug in older rsyncs. --- diff --git a/options.c b/options.c index 9ffc3cf7..54998661 100644 --- a/options.c +++ b/options.c @@ -2828,8 +2828,12 @@ void server_options(char **args, int *argc_p) if (append_mode > 1) args[ac++] = "--append"; args[ac++] = "--append"; - } else if (inplace) + } else if (inplace) { args[ac++] = "--inplace"; + /* Work around a bug in older rsync versions (on the remote side) for --inplace --sparse */ + if (sparse_files && !whole_file) + args[ac++] = "--no-W"; + } if (files_from && (!am_sender || filesfrom_host)) { if (filesfrom_host) {