projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5214ece
)
rename() cannot replace existing files on Windows.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 5 Jan 2007 05:44:01 +0000
(
05:44
+0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 5 Jan 2007 05:44:01 +0000
(
05:44
+0000)
src/graph.c
patch
|
blob
|
history
diff --git
a/src/graph.c
b/src/graph.c
index
be6080e
..
1f00660
100644
(file)
--- a/
src/graph.c
+++ b/
src/graph.c
@@
-374,6
+374,9
@@
void dump_graph(void)
pclose(file);
} else {
fclose(file);
+#ifdef HAVE_MINGW
+ unlink(filename);
+#endif
rename(tmpname, filename);
free(tmpname);
}