summaryrefslogtreecommitdiff
path: root/sender.c
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-04-29 16:51:02 -0700
committerWayne Davison <wayne@opencoder.net>2020-04-29 17:02:14 -0700
commit3a7bf54ad52072b36cecd7776d5d56612acd986f (patch)
tree53aec0cc943d8fd56419b30a89b0468192a1105c /sender.c
parentc1cb307b4b02cce539effcc01c82c060cd6facd0 (diff)
downloadrsync-3a7bf54ad52072b36cecd7776d5d56612acd986f.tar.gz
A resumed partial-dir file is transferred in-place.
Fixed bug #13071.
Diffstat (limited to 'sender.c')
-rw-r--r--sender.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sender.c b/sender.c
index 4f34cded..51feec72 100644
--- a/sender.c
+++ b/sender.c
@@ -42,6 +42,7 @@ extern int remove_source_files;
extern int updating_basis_file;
extern int make_backups;
extern int inplace;
+extern int inplace_partial;
extern int batch_fd;
extern int write_batch;
extern int file_old_total;
@@ -316,8 +317,8 @@ void send_files(int f_in, int f_out)
stats.created_files++;
}
- updating_basis_file = inplace && (protocol_version >= 29
- ? fnamecmp_type == FNAMECMP_FNAME : make_backups <= 0);
+ updating_basis_file = (inplace_partial && fnamecmp_type == FNAMECMP_PARTIAL_DIR)
+ || (inplace && (protocol_version >= 29 ? fnamecmp_type == FNAMECMP_FNAME : make_backups <= 0));
if (!am_server)
set_current_file_index(file, ndx);