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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=CScG taIjx2zvW1irL1h4RZfFuLVIjv6Zmg/ilrmCFVMfRSekmHDoKxD407gO0P5A/dAA 9CZkqKkxiqTgddHjTqrt/icnC0NnyFNpCG437uCcK5rkhJRvcKploLaymFgdupa/ Xc7lomTa5yNSZwKoxqw5OrPd3pel80GTMmXM9I8= 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:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=UdnV5NnlZC vMUfWNU//Nx3NNrOY=; b=eJ4C4mELTNY4k+CunJzayjkv3CICqwzjxl1T45/zGM zDBazTMajTpHCHWhVQhDli6o4EEx4pLvBuarfukX2xskof4MiPoxjw+thBsfUpbH OKS58wR8JCLkt9UJTVxOiMhDN5ZqSBmaL0FXiqnMypZQwjLFi0d6DUTSCkup1ZN0 M= 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.4 required=5.0 tests=BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f47.google.com X-Received: by 10.28.153.130 with SMTP id b124mr11606658wme.12.1447870417229; Wed, 18 Nov 2015 10:13:37 -0800 (PST) Subject: Re: Symlink targets dereferenced when winsymlinks:native To: cygwin AT cygwin DOT com References: <564BAA1A DOT 8000703 AT gmail DOT com> <20151118175503 DOT GT6402 AT calimero DOT vinschen DOT de> From: David Macek Message-ID: <564CBFCC.4020605@gmail.com> Date: Wed, 18 Nov 2015 19:13:32 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151118175503.GT6402@calimero.vinschen.de> Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms000807080307030004010907" X-IsSubscribed: yes --------------ms000807080307030004010907 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 18. 11. 2015 18:55, Corinna Vinschen wrote: > On Nov 17 23:28, David Macek wrote: >> Hi. >> >> I went through the UG looking for differences between regular Cygwin >> symlinks and NTFS symlinks, but couldn't find this documented. It >> seems that when using winsymlinks:native, the target path is first >> dereferenced before storing it in the link. >=20 > It's a result of the native symlink being a Windows path. The > ultimate conversion from POSIX to Windows path dereferences all > symlinks. Should that behaviour stay? If not, I can send a patch for the UG. >> That doesn't happed when >> using regular symlink files. Is this behaviour intentional / known? >> >> If it matters, the use case is `ln -sf /proc/self/fd /dev/fd`. >=20 > It matters. This is a bug in Cygwin, a missing test in fact. It should > never allow to create native symlinks to targets which only exist inside > of Cygwin. Consider that /proc/self/fd has no meaning to non-Cygwin > processes at all. Creating this symlink as native symlink doesn't make > any sense, they should always be generated as Cygwin-only symlinks. >=20 > Thanks for the report, I'll apply a matching patch. Cool. --=20 David Macek --------------ms000807080307030004010907 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG 9w0BBwEAAKCCDG8wggYzMIIFG6ADAgECAgMMb3owDQYJKoZIhvcNAQELBQAw gYwxCzAJBgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvb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