X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:message-id:to:subject:from:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 q=dns; s=default; b=ZX0co6CQCy9/JpAfvBVPI2InJdMYw8eAwTdhtZdlq2D
	HVCv8XcXvuAXuqtWzkyOX+ymCoMIJ3cOPmY/5T8HHJxWXm7JeH1mveJ8aVDb1/N8
	E9X8+nRn5Nlf0GXyi1DxnVddhQRm5xGAX/wLtGENmFlpYQIyL8wZ5L6ilURgu2Ow
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:message-id:to:subject:from:in-reply-to
	:references:mime-version:content-type:content-transfer-encoding;
	 s=default; bh=J4K/dfFn4LfiZDLp/t0kQumOFAc=; b=F+3WgRAW3IpwMydmV
	cEjozGNZhuat9g2VHu9RJmWXTvbgp/AxjXggzwY2K0Tx+/vkwTbkHx4u+4qLKicj
	y9G8KcMoeHg9EqOSxC8jnxP1uMT6uvOyiNJr5HCEUY6KuVxNwpy4tAdvoenN8vvJ
	g89T2qaThNJePcJ1W62ZEEtreY=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,RCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=H*UA:6.0, H*x:version, H*UA:version
X-HELO: msa03b.plala.or.jp
Date: Sat, 14 Jan 2017 13:00:36 +0900 (JST)
Message-Id: <20170114.130036.2184521703569361487.trueroad@trueroad.jp>
To: cygwin@cygwin.com
Subject: Re: rename() cannot replace the file which is opened with writable access
From: Masamichi Hosoda <trueroad@trueroad.jp>
In-Reply-To: <20170112214929.GD23119@calimero.vinschen.de>
References: <20170112.090746.2056666314950620331.trueroad@trueroad.jp>	<20170112214929.GD23119@calimero.vinschen.de>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-VirusScan: Outbound; msa03m; Sat, 14 Jan 2017 13:00:32 +0900

>> I've found that rename() cannot replace the file
>> which is opened with writable access on Cygwin.
>> On Linux, it works.
>> 
>> If I understand correctly, it should work under POSIX.
>> 
>> Here's sample code for reproduce.
> 
> Thanks for the testcase.  I applied a patch(*) and will upload a new
> developer snapshot for testing to https://cygwin.com/snapshots/
> at some point tomorrow.
> 
> 
> Corinna
> 
> (*) https://sourceware.org/git/?p=newlib-cygwin.git;a=commitdiff;h=6ed4753

The snapshot has been fixed the issue.
Thank you.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

