Batch files need to be written with the new subprotocol value
[rsync/rsync.git] / compat.c
index 4b57ec4..0cfb78f 100644 (file)
--- a/compat.c
+++ b/compat.c
@@ -77,7 +77,7 @@ void setup_protocol(int f_out,int f_in)
                        protocol_version = remote_protocol;
                /* CVS support: fallback to finalized protocol if incompatible */
                if (protocol_version >= 30) {
-                       int theirsub, oursub = PROTOCOL_SUBVERSION;
+                       int theirsub, oursub = SUBPROTOCOL_VERSION;
                        if (!read_batch)
                                write_varint(f_out, oursub);
                        theirsub = read_varint(f_in);