diff options
| author | Wayne Davison <wayned@samba.org> | 2004-07-21 23:59:22 +0000 |
|---|---|---|
| committer | Wayne Davison <wayned@samba.org> | 2004-07-21 23:59:22 +0000 |
| commit | aa4343211f67bf77c46845f9f327b8a7d850b161 (patch) | |
| tree | dc83a8afa79354b9feaf2e88dd76c6286946dfa9 /compat.c | |
| parent | 361198935518a80e57e26f337c62c06d660dab6b (diff) | |
| download | android_external_rsync-aa4343211f67bf77c46845f9f327b8a7d850b161.tar.gz android_external_rsync-aa4343211f67bf77c46845f9f327b8a7d850b161.tar.bz2 android_external_rsync-aa4343211f67bf77c46845f9f327b8a7d850b161.zip | |
Don't write out the protocol_version number in read_batch mode.
Diffstat (limited to 'compat.c')
| -rw-r--r-- | compat.c | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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; } |
