More error messages.
[rsync.git] / hlink.c
diff --git a/hlink.c b/hlink.c
index 76b2fb6e1c984bf650a8a01bcfd99196dbddf6a3..561ea736ba51f2dc0b58a057b5523eedbea78271 100644 (file)
--- a/hlink.c
+++ b/hlink.c
@@ -120,7 +120,7 @@ static void hard_link_one(int i)
        } else {
                if (st2.st_dev == st1.st_dev && st2.st_ino == st1.st_ino) return;
                
-               if (do_unlink(f_name(&hlink_list[i])) != 0 ||
+               if (robust_unlink(f_name(&hlink_list[i])) != 0 ||
                    do_link(f_name(&hlink_list[i-1]),f_name(&hlink_list[i])) != 0) {
                        if (verbose > 0)
                                rprintf(FINFO,"link %s => %s : %s\n",