diff options
author | Wayne Davison <wayne@opencoder.net> | 2020-04-29 16:51:02 -0700 |
---|---|---|
committer | Wayne Davison <wayne@opencoder.net> | 2020-04-29 17:02:14 -0700 |
commit | 3a7bf54ad52072b36cecd7776d5d56612acd986f (patch) | |
tree | 53aec0cc943d8fd56419b30a89b0468192a1105c /sender.c | |
parent | c1cb307b4b02cce539effcc01c82c060cd6facd0 (diff) | |
download | rsync-3a7bf54ad52072b36cecd7776d5d56612acd986f.tar.gz |
A resumed partial-dir file is transferred in-place.
Fixed bug #13071.
Diffstat (limited to 'sender.c')
-rw-r--r-- | sender.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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); |