From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 81210 invoked by alias); 14 Jan 2017 04:00:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 81128 invoked by uid 89); 14 Jan 2017 04:00:46 -0000 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 Received: from msa03.plala.or.jp (HELO msa03b.plala.or.jp) (58.93.240.3) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 14 Jan 2017 04:00:36 +0000 Received: from msc02.plala.or.jp ([172.23.12.32]) by msa03b.plala.or.jp with ESMTP id <20170114040032.STLZ26487.msa03b.plala.or.jp@msc02.plala.or.jp> for ; Sat, 14 Jan 2017 13:00:32 +0900 Received: from localhost ([114.190.239.225]) by msc02.plala.or.jp with ESMTP id <20170114040032.NGTT26601.msc02.plala.or.jp@localhost> for ; Sat, 14 Jan 2017 13:00:32 +0900 Date: Sat, 14 Jan 2017 04:00:00 -0000 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 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 X-SW-Source: 2017-01/txt/msg00163.txt.bz2 >> 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