From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12153 invoked by alias); 14 Jan 2017 15:38:27 -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 12026 invoked by uid 89); 14 Jan 2017 15:38:26 -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=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; Sat, 14 Jan 2017 15:38:16 +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 3ED51721E2825 for ; Sat, 14 Jan 2017 16:38:13 +0100 (CET) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id AC91E5E021D for ; Sat, 14 Jan 2017 16:38:12 +0100 (CET) Received: by calimero.vinschen.de (Postfix, from userid 500) id AB2C9A804D6; Sat, 14 Jan 2017 16:38:12 +0100 (CET) Date: Sat, 14 Jan 2017 15:38:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: rename() cannot replace the file which is opened with writable access Message-ID: <20170114153812.GC9762@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20170112.090746.2056666314950620331.trueroad@trueroad.jp> <20170112214929.GD23119@calimero.vinschen.de> <20170114.130036.2184521703569361487.trueroad@trueroad.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="uXxzq0nDebZQVNAZ" Content-Disposition: inline In-Reply-To: <20170114.130036.2184521703569361487.trueroad@trueroad.jp> User-Agent: Mutt/1.7.1 (2016-10-04) X-SW-Source: 2017-01/txt/msg00168.txt.bz2 --uXxzq0nDebZQVNAZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 827 On Jan 14 13:00, Masamichi Hosoda wrote: > >> 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. > >=20 > > 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. > >=20 > >=20 > > Corinna > >=20 > > (*) https://sourceware.org/git/?p=3Dnewlib-cygwin.git;a=3Dcommitdiff;h= =3D6ed4753 >=20 > The snapshot has been fixed the issue. > Thank you. Thanks for your feedback! Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --uXxzq0nDebZQVNAZ Content-Type: application/pgp-signature; name="signature.asc" Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYekXkAAoJEPU2Bp2uRE+gvZYP/25lc6xi7K/sL5W44/WO7kis eKk2nMtupPB0XViWPVCC5UFeJqzOaCiALc0Cu1qgX3nVb4FZeE9ymJ7wu2+Qwh6+ ZTCFlRkywisPr90YqyLBgvblS7PUjK58cmWc9ken+okvFvw+06vpYDYy3LGp7dA1 oDx/wkRw6lKpQbse+ft5FKx6ZQF+lBPPkFpm0t59OC1hohpItaaeJzRZbfT652Qh FjUWMK8XbpgFnQsl7U1FlTYEvnmG65fs7gLT3P5d703qA1AtWULrRT7XJxJSE3tA KPQn6gMkCtuao6p+MLndSi0DHWhU6/qKNvlZ6BJA/Zps3w17NuYinW7pT0RAXRUI ebPoiaWcdtD6MkdYT5rqDkC+ZFFZF+oMi/pdUet3aQ2AcB+rRjzW3DZf4yyeZjoN Hls6KUfMwXb10AAdaqf8eg5GZZYPC3p8w0xX8/R1N27imBRP7yqmG4BngpFhq+Tl ip/fwor+CHPyDcROaCiNtKBfCs3QIk3qnacoX7aZKOLiwderq7Sw3eLgv6995nVx vUq2Ye7YtS8IamReRVPPKLqoDngk3XvWgioge1jwkkwMCqwBSDPF3YTZq08NFa6K Z140tRCFk7Jy2rVFIsIT+EzpjoBMKPChxGPDf7HM5NJv+azlqzuoQdxdh6NQlCM9 h9NYAnkbEd3cEn+SrDGL =vFD8 -----END PGP SIGNATURE----- --uXxzq0nDebZQVNAZ--