git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ee6eb7
)
Set checksum_seed only if it is still zero.
author
Wayne Davison
<wayned@samba.org>
Mon, 9 Feb 2004 18:32:53 +0000
(18:32 +0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 9 Feb 2004 18:32:53 +0000
(18:32 +0000)
compat.c
patch
|
blob
|
history
diff --git
a/compat.c
b/compat.c
index c2a11038eca1651c614643d932a0c63f1b508057..d1c367a7c72446f8f08278fad0c06c6845ee5a76 100644
(file)
--- a/
compat.c
+++ b/
compat.c
@@
-38,7
+38,6
@@
extern int preserve_times;
extern int always_checksum;
extern int checksum_seed;
-
extern int protocol_version;
extern int verbose;
@@
-85,11
+84,9
@@
void setup_protocol(int f_out,int f_in)
}
if (am_server) {
- if (read_batch || write_batch)
- checksum_seed = 32761;
- else
+ if (!checksum_seed)
checksum_seed = time(NULL);
- write_int(f_out,checksum_seed);
+ write_int(f_out,
checksum_seed);
} else {
checksum_seed = read_int(f_in);
}