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
Additional testing confirmed the limited scope of the sources affected
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
108c856
..
1975e58
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-458,7
+458,11
@@
int recv_files(int f_in,struct file_list *flist,char *local_name)
if (fd1 != -1) {
close(fd1);
}
if (fd1 != -1) {
close(fd1);
}
- close(fd2);
+ if (close(fd2) < 0) {
+ rprintf(FERROR, "close failed on %s: %s\n",
+ full_fname(fnametmp), strerror(errno));
+ exit_cleanup(RERR_FILEIO);
+ }
if (verbose > 2)
rprintf(FINFO,"renaming %s to %s\n",fnametmp,fname);
if (verbose > 2)
rprintf(FINFO,"renaming %s to %s\n",fnametmp,fname);