Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Chris Faylor Date: Thu, 13 Jul 2000 12:23:27 -0400 To: "'cygwin'" Subject: Re: Have rename() semantics changed? Message-ID: <20000713122327.A9529@cygnus.com> Mail-Followup-To: 'cygwin' References: <779F20BCCE5AD31186A50008C75D9979171747 AT silldn_mail1 DOT sanwaint DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <779F20BCCE5AD31186A50008C75D9979171747@silldn_mail1.sanwaint.com>; from EFifer@sanwaint.com on Thu, Jul 13, 2000 at 05:15:06PM +0100 On Thu, Jul 13, 2000 at 05:15:06PM +0100, Fifer, Eric wrote: > >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 > > * 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. Can you still unlink opened files on Windows 9x, Windows NT, and W2K with this change? I believe that is why I removed this. Either that or it prevented files from being opened. Sorry that I don't remember. If the above still works, then I'll put this back and comment this so we won't have to guess next time. cgf -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com