Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
$RSYNC must be set to absolute path so that it can be passed to --rsync-path
[rsync/rsync.git]
/
compat.c
diff --git
a/compat.c
b/compat.c
index
305c827
..
72e0f99
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 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) {
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 (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 {
checksum_seed = time(NULL);
write_int(f_out,checksum_seed);
} else {