Merge across rsync+ patch; add a little documentation to the manpage. More documenta...
[rsync.git] / compat.c
index 305c827dea14564a533f1c252fb77ed7c7bd6049..72e0f99f647353c96b1b16684ad24532ef371bbf 100644 (file)
--- 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 {