summaryrefslogtreecommitdiff
path: root/receiver.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2015-09-07 09:46:31 -0700
committerWayne Davison <wayned@samba.org>2015-09-07 10:07:17 -0700
commitcce44865c1ac64a434390b96489252ed576ef951 (patch)
tree123a5cfe272ff5b3ca18ac8e72063ce6d56901d6 /receiver.c
parent1983198097f57cb9c2eb44ae51cbf8c2cabccbe4 (diff)
downloadrsync-cce44865c1ac64a434390b96489252ed576ef951.tar.gz
Fixed logging of %b & %c when using --log-file.
The %b and %c escapes were outputting cumulative values when logged via --log-file only (the bug didn't affect daemon transfer logging or the output of the client's --out-format info). Also unified the %b & %c switch case to make it easier to maintain. Fixes bug 11496.
Diffstat (limited to 'receiver.c')
-rw-r--r--receiver.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/receiver.c b/receiver.c
index 63f1c12f..4ea4c091 100644
--- a/receiver.c
+++ b/receiver.c
@@ -672,8 +672,7 @@ int recv_files(int f_in, int f_out, char *local_name)
}
}
- if (!log_before_transfer)
- remember_initial_stats();
+ remember_initial_stats();
if (!do_xfers) { /* log the transfer */
log_item(FCLIENT, file, iflags, NULL);