Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
http.c: add http.sslCertPasswordProtected option
[gitweb.git]
/
sha1_file.c
diff --git
a/sha1_file.c
b/sha1_file.c
index bd5edd8e657536e60fcb68d427df134c84f816c5..e73cd4fc0ba2daac14f604f1973d1b0658212b26 100644
(file)
--- a/
sha1_file.c
+++ b/
sha1_file.c
@@
-2251,7
+2251,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));