X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/4875d6b64dd0ed8d451746cc0cc609cff36192bd..ef20efcbb69274e423321d7ac27bfe868bca65aa:/batch.c diff --git a/batch.c b/batch.c index 68d284d6..88dad3c1 100644 --- a/batch.c +++ b/batch.c @@ -33,7 +33,6 @@ static int *flag_ptr[] = { &preserve_devices, &preserve_hard_links, &always_checksum, - &xfer_dirs, NULL }; @@ -180,10 +179,7 @@ void write_batch_shell_file(int argc, char *argv[], int file_arg_cnt) } 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);