summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-01-14 07:38:37 -0800
committerWayne Davison <wayned@samba.org>2009-01-14 07:38:37 -0800
commitabd32c9585158286d5b1800e5476477da18c48dc (patch)
treeb585e065a197aed253b18a2fda499814823dd996 /options.c
parent01e293f1b52bd16b5b487f5003cce4948786c474 (diff)
downloadrsync-abd32c9585158286d5b1800e5476477da18c48dc.tar.gz
Send the --stats option for proper del-stats operation.
Diffstat (limited to 'options.c')
-rw-r--r--options.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/options.c b/options.c
index 221ddcb5..8b67275c 100644
--- a/options.c
+++ b/options.c
@@ -1760,7 +1760,7 @@ int parse_arguments(int *argc_p, const char ***argv_p)
set_output_verbosity(verbose, DEFAULT_PRIORITY);
- if (do_stats && !am_server) {
+ if (do_stats) {
parse_output_words(info_words, info_levels,
verbose > 1 ? "stats3" : "stats2", DEFAULT_PRIORITY);
}
@@ -2368,6 +2368,9 @@ void server_options(char **args, int *argc_p)
if (protect_args && !local_server) /* unprotected args stop here */
args[ac++] = NULL;
+ if (do_stats)
+ args[ac++] = "--stats";
+
if (list_only > 1)
args[ac++] = "--list-only";