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
Made --port and --address point the user at the relevant global
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
b4a32d5
..
70978fd
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-289,7
+289,8
@@
static int receive_data(int f_in, char *fname_r, int fd_r, OFF_T size_r,
offset += len;
}
- flush_write_file(fd);
+ if (flush_write_file(fd) < 0)
+ goto report_write_error;
#ifdef HAVE_FTRUNCATE
if (inplace && fd != -1)