summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-01-03 12:00:02 -0800
committerWayne Davison <wayned@samba.org>2009-01-03 12:02:47 -0800
commit21cddef2b460098f5289b9cdbd592bf8f0f9e759 (patch)
treee19d41350ae9753ac69ac0cb86fa3cc3042be8fd /receiver.c
parentb3bf9b9df95137a3a43248be9599d919b04877af (diff)
downloadrsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.tar.gz
Improved the backup code:
- Backups do not interfere with an atomic update (when possible). - Backing up a file will remove a directory that is in the way and visa versa. - Unify the backup-dir and non-backup-dir code in backup.c. - Improved the backup tests a little bit.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/receiver.c b/receiver.c
index c1ea6089..0135e426 100644
--- a/receiver.c
+++ b/receiver.c
@@ -331,7 +331,7 @@ static void handle_delayed_updates(char *local_name)
struct file_struct *file = cur_flist->files[ndx];
fname = local_name ? local_name : f_name(file, NULL);
if ((partialptr = partial_dir_fname(fname)) != NULL) {
- if (make_backups > 0 && !make_backup(fname))
+ if (make_backups > 0 && !make_backup(fname, False))
continue;
if (DEBUG_GTE(RECV, 1)) {
rprintf(FINFO, "renaming %s to %s\n",