X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/972a3619c4ea253671e2fe0897f99af897782e26..e459239d27de0f47f9c524d0f547f014d7db5b22:/receiver.c diff --git a/receiver.c b/receiver.c index 5882e605..0533fffe 100644 --- a/receiver.c +++ b/receiver.c @@ -83,7 +83,7 @@ static void add_delete_entry(struct file_struct *file) static void delete_one(struct file_struct *f) { if (!S_ISDIR(f->mode)) { - if (do_unlink(f_name(f)) != 0) { + if (robust_unlink(f_name(f)) != 0) { rprintf(FERROR,"unlink %s : %s\n",f_name(f),strerror(errno)); } else if (verbose) { rprintf(FINFO,"deleting %s\n",f_name(f));