extern struct filter_list_struct filter_list;
-static int fudged_recurse;
-
static int *flag_ptr[] = {
- &fudged_recurse,
+ &recurse,
&preserve_uid,
&preserve_gid,
&preserve_links,
&preserve_devices,
&preserve_hard_links,
&always_checksum,
- &xfer_dirs,
NULL
};
/* Start the batch file with a bitmap of data-stream-affecting
* flags. */
- fudged_recurse = recurse < 0;
for (i = 0, flags = 0; flag_ptr[i]; i++) {
if (*flag_ptr[i])
flags |= 1 << i;
{
int i, flags;
- fudged_recurse = recurse < 0;
if (protocol_version < 29)
xfer_dirs = 0;
for (i = 0, flags = read_int(fd); flag_ptr[i]; i++) {
*flag_ptr[i] = set;
}
}
- recurse = fudged_recurse ? -1 : 0;
if (protocol_version < 29)
xfer_dirs = recurse ? 1 : 0;
}
} else
write_arg(fd, p);
}
- if ((p = find_colon(argv[argc - 1])) != NULL) {
- if (*++p == ':')
- p++;
- } else
+ if (!(p = check_for_hostspec(argv[argc - 1], &p, &i)))
p = argv[argc - 1];
write(fd, " ${1:-", 6);
write_arg(fd, p);