projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename() cannot replace existing files on Windows.
[oweals/tinc.git]
/
src
/
graph.c
diff --git
a/src/graph.c
b/src/graph.c
index be6080e07ad97b8002f681b37cadae7537cd51ff..1f006606a87561e497e9dc164510c81494534ffc 100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-374,6
+374,9
@@
void dump_graph(void)
pclose(file);
} else {
fclose(file);
pclose(file);
} else {
fclose(file);
+#ifdef HAVE_MINGW
+ unlink(filename);
+#endif
rename(tmpname, filename);
free(tmpname);
}
rename(tmpname, filename);
free(tmpname);
}