summaryrefslogtreecommitdiff
path: root/compat.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-08-14 02:04:47 +0000
committerMartin Pool <mbp@samba.org>2001-08-14 02:04:47 +0000
commit6902ed178ba54c8e1c410519f7ee576ddb42554c (patch)
treef96da1be2d5c9d866c8a4962d879a534676caf3a /compat.c
parentfab9a9c54729984199d20b637ea8cc163c73d2e2 (diff)
downloadrsync-6902ed178ba54c8e1c410519f7ee576ddb42554c.tar.gz
Merge across rsync+ patch; add a little documentation to the manpage. More documentation would be better.
Diffstat (limited to 'compat.c')
-rw-r--r--compat.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/compat.c b/compat.c
index 305c827d..72e0f99f 100644
--- a/compat.c
+++ b/compat.c
@@ -36,6 +36,9 @@ extern int checksum_seed;
extern int remote_version;
extern int verbose;
+extern int read_batch; /* dw */
+extern int write_batch; /* dw */
+
void setup_protocol(int f_out,int f_in)
{
if (remote_version == 0) {
@@ -57,6 +60,9 @@ void setup_protocol(int f_out,int f_in)
if (remote_version >= 12) {
if (am_server) {
+ if (read_batch || write_batch) /* dw */
+ checksum_seed = 32761;
+ else
checksum_seed = time(NULL);
write_int(f_out,checksum_seed);
} else {