Ben Pfaff wrote: > On the Windows platform, Microsoft documents the rename function > as refusing to replace existing destination files. ... > > Here is a gnulib commit that I am proposing. It (cross)compiles > on Mingw, but I am waiting to hear back from my Windows tester to > find out whether it actually solves the problem for him. > > Comments?
How does MoveFileEx with MOVEFILE_REPLACE_EXISTING behave when the destination file exists and is a hard link [1] to another file? Will the other file see some changes? I.e. will the hard linked file be overwritten, or will the hard link be broken (as on POSIX systems)? Bruno [1] http://en.wikipedia.org/wiki/Hard_link#Usage