diff options
author | Wayne Davison <wayned@samba.org> | 2007-04-21 19:32:46 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2007-04-21 19:32:46 +0000 |
commit | 753849fdbcf8df0a408135be469f620bb74f2ab5 (patch) | |
tree | 1bc854d6d6816ecaca2bc785a35c4c9115ec810d /io.c | |
parent | bb25779de7afb3e5a803c81ba6526b92f829c12b (diff) | |
download | rsync-753849fdbcf8df0a408135be469f620bb74f2ab5.tar.gz rsync-753849fdbcf8df0a408135be469f620bb74f2ab5.tar.bz2 rsync-753849fdbcf8df0a408135be469f620bb74f2ab5.zip |
Batch files need to be written with the new subprotocol value
for protocol 30.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1715,6 +1715,11 @@ void start_write_batch(int fd) * actual communication so far depends on whether a daemon * is involved. */ write_int(batch_fd, protocol_version); + if (protocol_version >= 30) { + int sub = protocol_version == PROTOCOL_VERSION + ? SUBPROTOCOL_VERSION : 0; + write_varint(batch_fd, sub); + } write_int(batch_fd, checksum_seed); if (am_sender) |