Have rename() semantics changed?

Fifer, Eric EFifer@sanwaint.com
Thu Jul 13 09:15:00 GMT 2000


Stewart Greenhill wrote:
> The latest cygwin seems not to allow open files to be renamed. This
> works under Unix. It is not normally allowed under Windows, but worked
> in previous versions of the cygwin environment.
> 
> Is this an official change, or could it be a bug?

I compared strace's on b20.1 and 1.1.2 and the shared argument to
CreateFileA has changed.  FILE_SHARE_DELETE was dropped from
host_dependent.shared in dcrt0.cc (host_dependent_constants::init).
This was the comment at the time:

  Sat Mar 18 01:32:04 2000  Christopher Faylor <cgf@cygnus.com>

        * dcrt0.cc (host_dependent_constants::init): Eliminate DELETE flag
        from shared constant.

I put it back and your test program works again.  Perhaps Chris can
shed some light on the reason for the change.

Regards,

Eric Fifer

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list