Re: First cut at git port to Cygwin
- From
- Christopher Faylor <me@cgf.cx>
- Date
- Oct 5, 2005, 16:28 UTC
- Message-ID
- <20051005162801.GC30303@trixie.casa.cgf.cx>
- In-Reply-To
- <4343FE08.2080607@zytor.com>
On Wed, Oct 05, 2005 at 09:23:36AM -0700, H. Peter Anvin wrote:
Show 7 quoted lines
>Christopher Faylor wrote: >>Cygwin's rename is much more than just a simple wrapper around MoveFile >>or MoveFileEx. It tries hard to guarantee POSIX semantics within the >>strictures imposed by Windows. > >Certainly, but presumably different versions of Win32 have different >limitations, no?
Yes, definitely. That's why the Cygwin rename code (and unlink code for that matter) is so headache-inducing.
FWIW, I just looked at the source and, AFAICT, if rename() is setting EPERM on Windows NT/2000/XP, it should be the result of a failing MoveFileEx (old, new, MOVEFILE_REPLACE_EXISTING). -- Christopher Faylor spammer? -> aaaspam@sourceware.org Cygwin Co-Project Leader aaaspam@duffek.com TimeSys, Inc.