rename() cannot replace existing files on Windows.
This commit is contained in:
parent
5214ece030
commit
d80cc7a5cc
1 changed files with 3 additions and 0 deletions
|
@ -374,6 +374,9 @@ void dump_graph(void)
|
||||||
pclose(file);
|
pclose(file);
|
||||||
} else {
|
} else {
|
||||||
fclose(file);
|
fclose(file);
|
||||||
|
#ifdef HAVE_MINGW
|
||||||
|
unlink(filename);
|
||||||
|
#endif
|
||||||
rename(tmpname, filename);
|
rename(tmpname, filename);
|
||||||
free(tmpname);
|
free(tmpname);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue