summaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-10-16 15:10:12 +0000
committerWayne Davison <wayned@samba.org>2007-10-16 15:10:12 +0000
commit95def6d957131340ee797f010a4455b110dbde2a (patch)
treebfc6d82fde12759aa0fc6c8da789ce922ee70318 /options.c
parent9970bed4d99f70dab4676ae92dab104a70aae56c (diff)
downloadrsync-95def6d957131340ee797f010a4455b110dbde2a.tar.gz
- Send an 'i' in the -e arg to the server if we can support inc_recurse.
- Got rid of some unneeded blocking_io value twiddling. - Send --use-qsort to the server if it was specified.
Diffstat (limited to 'options.c')
-rw-r--r--options.c21
1 files changed, 13 insertions, 8 deletions
diff --git a/options.c b/options.c
index dc1f9c7d..e4fe5bd8 100644
--- a/options.c
+++ b/options.c
@@ -1644,12 +1644,8 @@ void server_options(char **args, int *argc_p)
static char argstr[64];
int ac = *argc_p;
char *arg;
-
int i, x;
- if (blocking_io == -1)
- blocking_io = 0;
-
/* This should always remain first on the server's command-line. */
args[ac++] = "--server";
@@ -1752,14 +1748,20 @@ void server_options(char **args, int *argc_p)
if (do_compression)
argstr[x++] = 'z';
+ /* We make use of the -e option to let the server know about any
+ * pre-release protocol version && our allow_inc_recurse status. */
+ set_allow_inc_recurse();
#if SUBPROTOCOL_VERSION != 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 (protocol_version == PROTOCOL_VERSION) {
x += snprintf(argstr+x, sizeof argstr - x,
- "e%d.%d", PROTOCOL_VERSION, SUBPROTOCOL_VERSION);
- }
+ "e%d.%d%s", PROTOCOL_VERSION, SUBPROTOCOL_VERSION,
+ allow_inc_recurse ? "i" : "");
+ } else
#endif
+ if (allow_inc_recurse) {
+ argstr[x++] = 'e';
+ argstr[x++] = 'i';
+ }
argstr[x] = '\0';
@@ -1925,6 +1927,9 @@ void server_options(char **args, int *argc_p)
if (numeric_ids)
args[ac++] = "--numeric-ids";
+ if (use_qsort)
+ args[ac++] = "--use-qsort";
+
if (am_sender) {
if (ignore_existing)
args[ac++] = "--ignore-existing";