The patches for 3.0.0pre8.
[rsync/rsync-patches.git] / link-by-hash.diff
index 7dcea6b..423c9a2 100644 (file)
@@ -540,11 +540,11 @@ diff --git a/rsync.c b/rsync.c
  extern struct file_list *cur_flist, *first_flist, *dir_flist;
  extern struct chmod_mode_struct *daemon_chmod_modes;
  #ifdef ICONV_OPTION
-@@ -531,8 +532,15 @@ void finish_transfer(const char *fname, const char *fnametmp,
+@@ -533,8 +534,15 @@ int finish_transfer(const char *fname, const char *fnametmp,
        /* move tmp file over real file */
        if (verbose > 2)
                rprintf(FINFO, "renaming %s to %s\n", fnametmp, fname);
--      ret = robust_rename(fnametmp, fname, partialptr,
+-      ret = robust_rename(fnametmp, fname, temp_copy_name,
 -                          file->mode & INITACCESSPERMS);
 +#ifdef HAVE_LINK
 +      if (link_by_hash_dir)
@@ -552,7 +552,7 @@ diff --git a/rsync.c b/rsync.c
 +      else
 +#endif
 +      {
-+              ret = robust_rename(fnametmp, fname, partialptr,
++              ret = robust_rename(fnametmp, fname, temp_copy_name,
 +                                  file->mode & INITACCESSPERMS);
 +      }
        if (ret < 0) {