Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle OSes where you can't rename a open file in the cleanup code.
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
03912ad
..
c565a6f
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-398,7
+398,7
@@
int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
continue;
}
continue;
}
- cleanup_set(fnametmp, fname, file);
+ cleanup_set(fnametmp, fname, file
, buf, fd1, fd2
);
if (!am_server && verbose)
rprintf(FINFO,"%s\n",fname);
if (!am_server && verbose)
rprintf(FINFO,"%s\n",fname);
@@
-416,9
+416,9
@@
int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
rprintf(FINFO,"renaming %s to %s\n",fnametmp,fname);
finish_transfer(fname, fnametmp, file);
rprintf(FINFO,"renaming %s to %s\n",fnametmp,fname);
finish_transfer(fname, fnametmp, file);
-
+
cleanup_disable();
cleanup_disable();
-
+
if (!recv_ok) {
if (csum_length == SUM_LENGTH) {
rprintf(FERROR,"ERROR: file corruption in %s. File changed during transfer?\n",
if (!recv_ok) {
if (csum_length == SUM_LENGTH) {
rprintf(FERROR,"ERROR: file corruption in %s. File changed during transfer?\n",