Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
bd397b8
)
W mustn't backup an inplace file in finish_transfer().
author
Wayne Davison
<wayned@samba.org>
Tue, 7 Sep 2004 20:37:36 +0000
(20:37 +0000)
committer
Wayne Davison
<wayned@samba.org>
Tue, 7 Sep 2004 20:37:36 +0000
(20:37 +0000)
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
a97357d
..
47b49a6
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-239,15
+239,15
@@
void finish_transfer(char *fname, char *fnametmp, struct file_struct *file,
{
int ret;
- if (make_backups && !make_backup(fname))
- return;
-
if (inplace) {
if (verbose > 2)
rprintf(FINFO, "finishing %s\n", fname);
goto do_set_perms;
}
+ if (make_backups && !make_backup(fname))
+ return;
+
/* Change permissions before putting the file into place. */
set_perms(fnametmp, file, NULL, ok_to_set_time ? 0 : PERMS_SKIP_MTIME);