mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-26 23:58:19 -04:00
Don't write out the protocol_version number in read_batch mode.
This commit is contained in:
1 parent
3611989355
commit
aa4343211f
1 file changed
+2
-6
@@ -37,13 +37,9 @@ extern int protocol_version;
|
||||
void setup_protocol(int f_out,int f_in)
|
||||
{
|
||||
if (remote_protocol == 0) {
|
||||
if (am_server) {
|
||||
remote_protocol = read_int(f_in);
|
||||
if (!read_batch)
|
||||
write_int(f_out, protocol_version);
|
||||
} else {
|
||||
write_int(f_out, protocol_version);
|
||||
remote_protocol = read_int(f_in);
|
||||
}
|
||||
remote_protocol = read_int(f_in);
|
||||
if (protocol_version > remote_protocol)
|
||||
protocol_version = remote_protocol;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user