Add "--checksum" in rsync when using "--force"

If the user don't put that option in rsync_options using of "--force"
could be unsafe.
While the probability of failures because of this are low they aren't
zero.
This commit is contained in:
Jaime Casanova
2015-02-10 20:15:40 -05:00
parent 3e983b258c
commit e886e72f14

View File

@@ -2086,7 +2086,7 @@ copy_remote_files(char *host, char *remote_user, char *remote_path,
maxlen_snprintf(rsync_flags, "%s", options.rsync_options);
if (runtime_options.force)
strcat(rsync_flags, " --delete");
strcat(rsync_flags, " --delete --checksum");
if (!remote_user[0])
{