X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/875a13b42c8fa16811e429e3773ee942d3873d69..486f8cd1abb053fbe2dc4cbabe3db6f326019ea3:/options.c diff --git a/options.c b/options.c index a269a511..4a9b28f2 100644 --- a/options.c +++ b/options.c @@ -1650,6 +1650,13 @@ void server_options(char **args,int *argc) argstr[x] = '\0'; + /* If we're speaking a pre-release version of a protocol, we tell + * the server about this by (ab)using the -e option. */ + if (SUBPROTOCOL_VERSION && protocol_version == PROTOCOL_VERSION) { + x += snprintf(argstr+x, sizeof argstr - x, + "e%d.%d", PROTOCOL_VERSION, SUBPROTOCOL_VERSION); + } + if (x != 1) args[ac++] = argstr;