* it and use mode 1. If there is something other than a directory
* at the destination path, we must be transferring one file
* (anything at the destination will be overwritten). */
* it and use mode 1. If there is something other than a directory
* at the destination path, we must be transferring one file
* (anything at the destination will be overwritten). */
if (S_ISDIR(st.st_mode)) {
if (!push_dir(dest_path)) {
rsyserr(FERROR, errno, "push_dir#1 %s failed",
if (S_ISDIR(st.st_mode)) {
if (!push_dir(dest_path)) {
rsyserr(FERROR, errno, "push_dir#1 %s failed",
/* 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, curr_dir_depth, NULL);
}
exit_code = do_recv(f_in,f_out,flist,local_name);
}
exit_code = do_recv(f_in,f_out,flist,local_name);