From: Christopher Faylor Date: Wed, 05 Oct 2005 16:28:01 GMT Subject: Re: First cut at git port to Cygwin 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: >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.