X-Recipient: archive-cygwin AT delorie DOT 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:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=lhlOYyhjGmePq0eX /RejI2m/OxFINzuaNDJOReIwgZq27eYhheud7N06QghyhZBy1OxtyhDBtVlX9sTB O37VFRv/Z80IWM3vOugIrz4Uc5iG3x44BFc3fl2eXAFzg6PtdHrTNNc4mR/EzbxI DhRnZEWqj2SGthDy7/UmPLvbkj4= 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:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=wuDVF4G0x4Ji6u/8JMn5gz gD9VM=; b=O7jg2fF1fSyPAAX/qUOmbozQD5uUpFbP8nyAi3kc62RDrB+BFvWKVH 7z3c5y8eRVRP35nZAiSSP/Xw7hKjdhMiVTFBeaZwnA53wpe9+hf9xF2TDhs6j918 sKWX90e8l/ru9W2C0Wq3YiMa3/S2m3ORPTXuqJPzan8zFWXV5m6KI= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@yandex.ru X-Yandex-Suid-Status: 1 0,1 0 Date: Thu, 12 Jan 2017 08:39:18 +0300 From: Andrey Repin Reply-To: cygwin AT cygwin DOT com Message-ID: <1408535997.20170112083918@yandex.ru> To: Masamichi Hosoda , cygwin AT cygwin DOT 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 DOT 090746 DOT 2056666314950620331 DOT trueroad AT trueroad DOT jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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