Only send the --no-W kluge to a receiver.

This commit is contained in:
Wayne Davison
2022-01-02 23:51:04 -08:00
parent 3e44bbd313
commit f1a6998df2

View File

@@ -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";
}