From d80cc7a5cc918a1dbf8dd789d2125f55c4949d27 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 5 Jan 2007 05:44:01 +0000 Subject: [PATCH] rename() cannot replace existing files on Windows. --- src/graph.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/graph.c b/src/graph.c index be6080e..1f00660 100644 --- 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); } -- 2.25.1