]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Only send the `--no-W` kluge to a receiver.
authorWayne Davison <wayne@opencoder.net>
Mon, 3 Jan 2022 07:51:04 +0000 (23:51 -0800)
committerWayne Davison <wayne@opencoder.net>
Mon, 3 Jan 2022 07:51:35 +0000 (23:51 -0800)
options.c

index f4c159f3681c84463c23ffe56b6e8d042fe9737d..75165adf99f46889ba155fd8a0a93b69ea5487ee 100644 (file)
--- a/options.c
+++ b/options.c
@@ -2834,7 +2834,7 @@ void server_options(char **args, int *argc_p)
        } 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)
+               if (sparse_files && !whole_file && am_sender)
                        args[ac++] = "--no-W";
        }