summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-04-05 12:37:15 +0100
committerRichard Maw <richard.maw@codethink.co.uk>2012-04-05 12:37:15 +0100
commitc4f0a589df8ac5eb47431de185330770cdc13a66 (patch)
tree5ad947cee1d963d336ba5146f7f0dae20f3a18cf
parentf5b8bede5ade476813ddc93209d213882c99f2a1 (diff)
downloadccache-baserock/http-ccache.tar.gz
ccache.c: use tmp_unlink in get_remote_filebaserock/http-ccache
The temporary file that the object is downloaded to needs to be removed. x_unlink() will rename the file before removing it, which is an nfs safety precaution. This is not needed for temporary files as only the running program should be aware of them anyway
-rw-r--r--ccache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccache.c b/ccache.c
index 7cc81ee1..25bf4797 100644
--- a/ccache.c
+++ b/ccache.c
@@ -386,7 +386,7 @@ get_remote_file(const char *name, const char *suffix, const char *path)
stats_update(STATS_DOWNLOADED);
cleanup_rm:
- x_unlink(tempfilename);
+ tmp_unlink(tempfilename);
cleanup:
if (dest) fclose(dest);
free(tempfilename);