--- old/compat.c
+++ new/compat.c
-@@ -46,6 +46,7 @@ extern int preserve_hard_links;
+@@ -47,6 +47,7 @@ extern int preserve_hard_links;
extern int need_messages_from_generator;
extern int delete_mode, delete_before, delete_during, delete_after;
extern int delete_excluded;
extern int make_backups;
extern char *backup_dir, *backup_suffix;
extern char *partial_dir;
-@@ -161,7 +162,8 @@ void setup_protocol(int f_out,int f_in)
- }
+@@ -163,7 +164,7 @@ void setup_protocol(int f_out,int f_in)
} else if (protocol_version >= 30) {
- if (recurse && !preserve_hard_links && !delete_before
-- && !delete_after && !delay_updates && !prune_empty_dirs)
-+ && !delete_after && !delay_updates && !prune_empty_dirs
-+ && !detect_renamed)
+ if (recurse && allow_inc_recurse && !preserve_hard_links
+ && !delete_before && !delete_after && !delay_updates
+- && !prune_empty_dirs)
++ && !prune_empty_dirs && !detect_renamed)
inc_recurse = 1;
need_messages_from_generator = 1;
}
}
}
for (i = cur_flist->low; i <= cur_flist->high; i++) {
-@@ -1909,7 +2070,21 @@ void generate_files(int f_out, const cha
+@@ -1911,7 +2072,21 @@ void generate_files(int f_out, const cha
} while ((cur_flist = cur_flist->next) != NULL);
if (delete_during)
int numeric_ids = 0;
int allow_8bit_chars = 0;
int force_delete = 0;
-@@ -351,6 +352,7 @@ void usage(enum logcode F)
+@@ -352,6 +353,7 @@ void usage(enum logcode F)
rprintf(F," --modify-window=NUM compare mod-times with reduced accuracy\n");
rprintf(F," -T, --temp-dir=DIR create temporary files in directory DIR\n");
rprintf(F," -y, --fuzzy find similar file for basis if no dest file\n");
rprintf(F," --compare-dest=DIR also compare destination files relative to DIR\n");
rprintf(F," --copy-dest=DIR ... and include copies of unchanged files\n");
rprintf(F," --link-dest=DIR hardlink to files in DIR when unchanged\n");
-@@ -508,6 +510,7 @@ static struct poptOption long_options[]
+@@ -513,6 +515,7 @@ static struct poptOption long_options[]
{"compare-dest", 0, POPT_ARG_STRING, 0, OPT_COMPARE_DEST, 0, 0 },
{"copy-dest", 0, POPT_ARG_STRING, 0, OPT_COPY_DEST, 0, 0 },
{"link-dest", 0, POPT_ARG_STRING, 0, OPT_LINK_DEST, 0, 0 },
{"fuzzy", 'y', POPT_ARG_NONE, &fuzzy_basis, 0, 0, 0 },
{"compress", 'z', POPT_ARG_NONE, 0, 'z', 0, 0 },
{"compress-level", 0, POPT_ARG_INT, &def_compress_level, 'z', 0, 0 },
-@@ -1397,7 +1400,7 @@ int parse_arguments(int *argc, const cha
+@@ -1402,7 +1405,7 @@ int parse_arguments(int *argc, const cha
inplace = 1;
}
partial_dir = tmp_partialdir;
if (inplace) {
-@@ -1406,6 +1409,7 @@ int parse_arguments(int *argc, const cha
+@@ -1411,6 +1414,7 @@ int parse_arguments(int *argc, const cha
snprintf(err_buf, sizeof err_buf,
"--%s cannot be used with --%s\n",
append_mode ? "append" : "inplace",
delay_updates ? "delay-updates" : "partial-dir");
return 0;
}
-@@ -1719,6 +1723,8 @@ void server_options(char **args,int *arg
+@@ -1724,6 +1728,8 @@ void server_options(char **args,int *arg
args[ac++] = "--super";
if (size_only)
args[ac++] = "--size-only";