Send the --stats option for proper del-stats operation.
authorWayne Davison <wayned@samba.org>
Wed, 14 Jan 2009 15:38:37 +0000 (07:38 -0800)
committerWayne Davison <wayned@samba.org>
Wed, 14 Jan 2009 15:38:37 +0000 (07:38 -0800)
options.c
rsync.h

index 221ddcb..8b67275 100644 (file)
--- 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";
 
diff --git a/rsync.h b/rsync.h
index 088f90e..bcce2f0 100644 (file)
--- a/rsync.h
+++ b/rsync.h
@@ -96,7 +96,7 @@
 /* This is used when working on a new protocol version in CVS, and should
  * be a new non-zero value for each CVS change that affects the protocol.
  * It must ALWAYS be 0 when the protocol goes final (and NEVER before)! */
-#define SUBPROTOCOL_VERSION 2
+#define SUBPROTOCOL_VERSION 3
 
 /* We refuse to interoperate with versions that are not in this range.
  * Note that we assume we'll work with later versions: the onus is on