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
Need to output the "failed verification" error before sending the
[rsync/rsync.git]
/
sender.c
diff --git
a/sender.c
b/sender.c
index
688dff6
..
211aec2
100644
(file)
--- a/
sender.c
+++ b/
sender.c
@@
-175,8
+175,7
@@
void send_files(struct file_list *flist, int f_out, int f_in)
initial_stats = stats;
initial_stats = stats;
- s = receive_sums(f_in);
- if (!s) {
+ if (!(s = receive_sums(f_in))) {
io_error |= IOERR_GENERAL;
rprintf(FERROR, "receive_sums failed\n");
return;
io_error |= IOERR_GENERAL;
rprintf(FERROR, "receive_sums failed\n");
return;
@@
-210,7
+209,7
@@
void send_files(struct file_list *flist, int f_out, int f_in)
return;
}
return;
}
- mbuf = st.st_size ? map_file(fd, st.st_size) : NULL;
+ mbuf = st.st_size ? map_file(fd, st.st_size
, s->blength
) : NULL;
if (verbose > 2) {
rprintf(FINFO, "send_files mapped %s of size %.0f\n",
if (verbose > 2) {
rprintf(FINFO, "send_files mapped %s of size %.0f\n",