From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 55539 invoked by alias); 12 Jan 2017 05:50:15 -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 55525 invoked by uid 89); 12 Jan 2017 05:50:14 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.0 required=5.0 tests=BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=Hosoda, Masamichi, hosoda, masamichi X-HELO: forward2o.cmail.yandex.net Received: from forward2o.cmail.yandex.net (HELO forward2o.cmail.yandex.net) (37.9.109.243) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 05:50:04 +0000 Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward2o.cmail.yandex.net (Yandex) with ESMTP id EB40920E40; Thu, 12 Jan 2017 08:50:00 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id 1AF233EC0F1C; Thu, 12 Jan 2017 08:49:59 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id ck9gg4HNeZ-nx1OodKw; Thu, 12 Jan 2017 08:49:59 +0300 (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client certificate not present) Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Received: from [192.168.1.10] (HELO daemon2.darkdragon.lan) by daemon2 (Office Mail Server 0.8.12 build 08053101) with SMTP; Thu, 12 Jan 2017 05:39:18 -0000 Date: Thu, 12 Jan 2017 05:50:00 -0000 From: Andrey Repin Reply-To: cygwin@cygwin.com Message-ID: <1408535997.20170112083918@yandex.ru> To: Masamichi Hosoda , cygwin@cygwin.com Subject: Re: rename() cannot replace the file which is opened with writable access In-Reply-To: <20170112.090746.2056666314950620331.trueroad@trueroad.jp> References: <20170112.090746.2056666314950620331.trueroad@trueroad.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00110.txt.bz2 Greetings, Masamichi Hosoda! > I've found that rename() cannot replace the file > which is opened with writable access on Cygwin. > On Linux, it works. It is OS dependent behavior, and vary even on same OS. Windows may let you rename a file, or may not, depends on how exactly it is opened. -- With best regards, Andrey Repin Thursday, January 12, 2017 08:38:15 Sorry for my terrible english... -- 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