From: Wayne Davison Date: Tue, 1 Mar 2005 01:15:59 +0000 (+0000) Subject: Changes needed to use check_for_hostspec() in place of find_colon(). X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/4d3abf1360ab94493923f2066c4eda059be30528 Changes needed to use check_for_hostspec() in place of find_colon(). --- diff --git a/batch.c b/batch.c index 657c9c09..88dad3c1 100644 --- a/batch.c +++ b/batch.c @@ -179,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);