From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22822 invoked by alias); 12 Jan 2017 21:49:48 -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 22788 invoked by uid 89); 12 Jan 2017 21:49:44 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-101.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=commitdiff, H*F:D*cygwin.com X-HELO: drew.franken.de Received: from mail-n.franken.de (HELO drew.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 21:49:34 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) (Authenticated sender: aquarius) by mail-n.franken.de (Postfix) with ESMTPSA id 9F3D1721E281E for ; Thu, 12 Jan 2017 22:49:30 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id D8E9C5E00CD for ; Thu, 12 Jan 2017 22:49:29 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id C1D6CA804D6; Thu, 12 Jan 2017 22:49:29 +0100 (CET) Date: Thu, 12 Jan 2017 21:49:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: rename() cannot replace the file which is opened with writable access Message-ID: <20170112214929.GD23119@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20170112.090746.2056666314950620331.trueroad@trueroad.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="GyRA7555PLgSTuth" Content-Disposition: inline In-Reply-To: <20170112.090746.2056666314950620331.trueroad@trueroad.jp> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-01/txt/msg00132.txt.bz2 --GyRA7555PLgSTuth Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 680 On Jan 12 09:07, Masamichi Hosoda wrote: > Hello, >=20 > I've found that rename() cannot replace the file > which is opened with writable access on Cygwin. > On Linux, it works. >=20 > If I understand correctly, it should work under POSIX. >=20 > 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=3Dnewlib-cygwin.git;a=3Dcommitdiff;h=3D6e= d4753 --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --GyRA7555PLgSTuth Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYd/npAAoJEPU2Bp2uRE+gRyoP+QGzfMPV1tMX5Ns7zinxi1ax WT/PtfBUZUJtl11OcdjCEvfV2aSYpkQubfdDPxQBkN42sJPuJzLRrqfkptYSRlbT 5nZYt9ppCkkzQ6iKOgkfQaU0lJbHB5IBvLxHyV+2/V02N6g57zgNKFnlM7xXO2Ud ClR5u1AdgDt8cmtOEHzF5oFZZ4rLuclIo41dlL4sIaLfNnWCl09vRx72ldHaotMB im6HksWhxhN9LoCdTgwDcm04HgKz524YFI7KcW6EtBkGBv8Tij98xr/DHQoJ3yYU PEh9QY7FSrBtB3WI57tNC80BCRFzR0Jc74LWLeT2a/GuwOUu428BjdWLXjloSj47 dTnMhKljDzcpGZAx4OiR4ttcFlkHLJyz78RkiUgNp7PGWgcll0u+EGRzlgJ0XpRl 4Io6FGWhcD3YqueZx/hOToso7ErRVwIIhrQs6sThCBbA43kYWfmebbH8/cG7xbSN 9rUOI2t3dyZ/kTnomJrrD1XNi7XFgjyi9J9u74pEqEpjIganC2n7L+uXyJZo68+1 5b7Vg/vm8gwqP5WU7TJIQuzNzJwtAZFbE+7JZ7miPXxbMpk3/MTjyRS0vkelJT2C Gi7ZqZZFRTtNcV9yLbVVM369L3HeSNuPeSF8U16oxkMipVsOUSg18xCelt+11yFQ ryJZJ9sz89bUMXojdohs =6959 -----END PGP SIGNATURE----- --GyRA7555PLgSTuth--