From: Wayne Davison Date: Fri, 28 Apr 2006 16:57:39 +0000 (+0000) Subject: Moved the sanitizing of the --*-dest args into main.c. X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/ad77db8b713d194c46f8cee1781f7a5ab7635c7e Moved the sanitizing of the --*-dest args into main.c. --- diff --git a/options.c b/options.c index c6d062a7..ee7b5222 100644 --- a/options.c +++ b/options.c @@ -1048,10 +1048,9 @@ int parse_arguments(int *argc, const char ***argv, int frommain) MAX_BASIS_DIRS, dest_option); return 0; } - arg = poptGetOptArg(pc); - if (sanitize_paths) - arg = sanitize_path(NULL, arg, NULL, 0); - basis_dir[basis_dir_cnt++] = (char *)arg; + /* We defer sanitizing this arg until we know what + * our destination directory is going to be. */ + basis_dir[basis_dir_cnt++] = (char *)poptGetOptArg(pc); break; case OPT_CHMOD: