Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
t5100: use ancient encoding syntax for backwards compatibility
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index 28bd9082fc9f4b79519f6bef8204600072c07027..e5dec8d3c8d783a8f90b700e633fe07e818df1f7 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2247,7
+2247,7
@@
int move_temp_to_file(const char *tmpfile, const char *filename)
goto out;
ret = errno;
}
- unlink(tmpfile);
+ unlink
_or_warn
(tmpfile);
if (ret) {
if (ret != EEXIST) {
return error("unable to write sha1 filename %s: %s\n", filename, strerror(ret));