/* Now that we know what our destination directory turned out to be,
* we can sanitize the --link-/copy-/compare-dest args correctly. */
if (sanitize_paths) {
/* Now that we know what our destination directory turned out to be,
* we can sanitize the --link-/copy-/compare-dest args correctly. */
if (sanitize_paths) {
- *dir = sanitize_path(NULL, *dir, NULL, dest_depth);
+ *dir = sanitize_path(NULL, *dir, NULL, startdir_depth);
}
exit_code = do_recv(f_in,f_out,flist,local_name);
}
exit_code = do_recv(f_in,f_out,flist,local_name);