summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-04-21 19:32:46 +0000
committerWayne Davison <wayned@samba.org>2007-04-21 19:32:46 +0000
commit753849fdbcf8df0a408135be469f620bb74f2ab5 (patch)
tree1bc854d6d6816ecaca2bc785a35c4c9115ec810d /io.c
parentbb25779de7afb3e5a803c81ba6526b92f829c12b (diff)
downloadrsync-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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io.c b/io.c
index a7603ff8..571f1ff7 100644
--- a/io.c
+++ b/io.c
@@ -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)