diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-05 12:37:15 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2012-04-05 12:37:15 +0100 |
commit | c4f0a589df8ac5eb47431de185330770cdc13a66 (patch) | |
tree | 5ad947cee1d963d336ba5146f7f0dae20f3a18cf | |
parent | f5b8bede5ade476813ddc93209d213882c99f2a1 (diff) | |
download | ccache-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |