mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-20 12:54:15 -04:00
Set checksum_seed only if it is still zero.
This commit is contained in:
1 parent
8ee6eb7134
commit
b1bf649cba
1 file changed
+2
-5
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user