X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/bb25779de7afb3e5a803c81ba6526b92f829c12b..753849fdbcf8df0a408135be469f620bb74f2ab5:/io.c 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)