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:
341c9a1
)
Added a comment.
author
Wayne Davison
<wayned@samba.org>
Fri, 23 Jul 2004 16:59:22 +0000
(16:59 +0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 23 Jul 2004 16:59:22 +0000
(16:59 +0000)
main.c
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
715af86
..
db37e0f
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-151,6
+151,8
@@
static void report(int f)
/* this is the client */
if (!am_sender) {
/* this is the client */
if (!am_sender) {
+ /* Read the first two in opposite order because the meaning of
+ * read/write swaps when switching from sender to receiver. */
total_written = read_longint(f);
total_read = read_longint(f);
stats.total_size = read_longint(f);
total_written = read_longint(f);
total_read = read_longint(f);
stats.total_size = read_longint(f);
@@
-461,9
+463,8
@@
static int do_recv(int f_in,int f_out,struct file_list *flist,char *local_name)
if (!delete_after) {
/* I moved this here from recv_files() to prevent a race condition */
if (!delete_after) {
/* I moved this here from recv_files() to prevent a race condition */
- if (recurse && delete_mode && !local_name && flist->count
>0) {
+ if (recurse && delete_mode && !local_name && flist->count
> 0)
delete_files(flist);
delete_files(flist);
- }
}
if (fd_pair(error_pipe) < 0) {
}
if (fd_pair(error_pipe) < 0) {