delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/11/23/11:48:35

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 4ANGmZNU869085
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 4ANGmZNU869085
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=oiSbD+4U
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C06B3857B98
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1732380513;
bh=SuYYJGXcbd3LDstUqB6TkOqQS9Ek/mEehjAmF3GAN/8=;
h=Date:To:cc:Subject:In-Reply-To:References:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=oiSbD+4UIhb0jA8250R1TNYpywp1axZ31nWke4vyaVY2Xi/kCU09Bm/6yQ1etKSCV
k0UZ1tPTwG/X/fFvlGM3cGtg7SHJb65H+NvU7KhfiM91URVEcw7Wxh7x2EWbS8IGAK
8aCVwCk6GtVk1QO2q3hL8jeHIF05jV7dD01+zfQg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 62C963858C42
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 62C963858C42
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732380455; cv=none;
b=P0tN2kwOB58EYwKgau/IYOO8P5fwk6NVyLFSo4Wd8hiNnPZSksOrXH5JiZZx5LXjyu2NZfZWdady30CwHIMV0cAs7f7ZEAKtVrBf2ph/3qeO3A9HLdRAe+GZWu/3xrI57Nx0oOoVJ+BulIILBHxQsgVT45Wt5lrdlMzuRhtaY1I=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1732380455; c=relaxed/simple;
bh=X9LF/+Mqj07Eu30g68l1j9AZT8KlfOsc+6vqiGitXEw=;
h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;
b=kcET8p0TTsjNqCsysUwdose5/49zCtvEXk55f9M2MLRLEnBMbkVkaSBuTMXYlpFun1QKYam6niymg60h2YbH9n0x88Ab047SpZMsjrCB1NGnRmSKOxLN0Ln1spE5woymyyG5tpVIbIhRQKhycwrKNVinhGNvsbZcrUqJdA/RWRI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62C963858C42
Date: Sat, 23 Nov 2024 08:47:34 -0800 (PST)
X-X-Sender: jeremyd AT resin DOT csoft DOT net
To: Cedric Blancher <cedric DOT blancher AT gmail DOT com>
cc: cygwin AT cygwin DOT com, Ms-nfs41-client-devel AT lists DOT sourceforge DOT net
Subject: Re: Corrupted file name in Cygwin - does Cygwin do a silly rename
if a file is open?
In-Reply-To: <CALXu0Uc=wOUbEaTzpfrYdn3Q8rXcaR-if84ZWXPgFJ1qxQbizQ@mail.gmail.com>
Message-ID: <08d6a039-215c-c8e8-0280-15bc0ce28a43@jdrake.com>
References: <CALXu0Uc=wOUbEaTzpfrYdn3Q8rXcaR-if84ZWXPgFJ1qxQbizQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeremy Drake via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeremy Drake <cygwin AT jdrake DOT com>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

On Sat, 23 Nov 2024, Cedric Blancher via Cygwin wrote:

> Good afternoon!
>
> Does Cygwin do a silly rename if a Cygwin file is open but gets
> /bin/rm at the same time?

Yes!  See function try_to_bin in winsup/cygwin/syscalls.cc:
      /* Create unique filename.  Start with a dot, followed by "cyg"
         transposed into the Unicode low surrogate area (U+dc00) on file
         systems supporting Unicode (except Samba), followed by the inode
         number in hex, followed by a path hash in hex.  The combination
         allows to remove multiple hardlinks to the same file. */

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019