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 (parent:
6543dc0
)
Changed the protocol version to 20 so that --stats will work without -v in
author
David Dykstra
<dwd@samba.org>
Mon, 15 Mar 1999 21:17:58 +0000
(21:17 +0000)
committer
David Dykstra
<dwd@samba.org>
Mon, 15 Mar 1999 21:17:58 +0000
(21:17 +0000)
both directions.
main.c
patch
|
blob
|
blame
|
history
rsync.h
patch
|
blob
|
blame
|
history
diff --git
a/main.c
b/main.c
index
5bd5b8a
..
0eab26b
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-42,8
+42,7
@@
static void report(int f)
if (f == -1 || !am_sender) return;
}
if (f == -1 || !am_sender) return;
}
- send_stats = verbose ||
- ((remote_version >= 20) && (PROTOCOL_VERSION >= 20));
+ send_stats = verbose || (remote_version >= 20);
if (am_server) {
if (am_sender && send_stats) {
int64 w;
if (am_server) {
if (am_sender && send_stats) {
int64 w;
@@
-71,7
+70,7
@@
static void report(int f)
if (do_stats) {
if (!am_sender && !send_stats) {
/* missing the bytes written by the generator */
if (do_stats) {
if (!am_sender && !send_stats) {
/* missing the bytes written by the generator */
- rprintf(FINFO, "\nCannot show stats as receiver because protocol version is less than 20\n");
+ rprintf(FINFO, "\nCannot show stats as receiver because
remote
protocol version is less than 20\n");
rprintf(FINFO, "Use --stats -v to show stats\n");
return;
}
rprintf(FINFO, "Use --stats -v to show stats\n");
return;
}
diff --git
a/rsync.h
b/rsync.h
index
a31b7e2
..
32d564c
100644
(file)
--- a/
rsync.h
+++ b/
rsync.h
@@
-47,7
+47,7
@@
#define SAME_TIME (1<<7)
/* update this if you make incompatible changes */
#define SAME_TIME (1<<7)
/* update this if you make incompatible changes */
-#define PROTOCOL_VERSION
19
+#define PROTOCOL_VERSION
20
#define MIN_PROTOCOL_VERSION 11
#define MAX_PROTOCOL_VERSION 30
#define MIN_PROTOCOL_VERSION 11
#define MAX_PROTOCOL_VERSION 30