Made itemize() output the fnamecmp_type and the fuzzy name based on
[rsync/rsync.git] / batch.c
diff --git a/batch.c b/batch.c
index 68d284d..88dad3c 100644 (file)
--- 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);