[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix for rename function on Mingw
From: |
Bruno Haible |
Subject: |
Re: fix for rename function on Mingw |
Date: |
Sat, 21 Mar 2009 06:53:31 +0100 |
User-agent: |
KMail/1.9.9 |
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
Re: fix for rename function on Mingw, Jim Meyering, 2009/03/21