diff options
author | Wayne Davison <wayned@samba.org> | 2009-01-03 12:00:02 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-01-03 12:02:47 -0800 |
commit | 21cddef2b460098f5289b9cdbd592bf8f0f9e759 (patch) | |
tree | e19d41350ae9753ac69ac0cb86fa3cc3042be8fd /receiver.c | |
parent | b3bf9b9df95137a3a43248be9599d919b04877af (diff) | |
download | android_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.tar.gz android_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.tar.bz2 android_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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", |