delorie.com/archives/browse.cgi | search |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=MxEMa4Zg87GR/6/eEEOWzSOfZVweh/VS0eJmO3yvpSEJpwuvNGg5e | |
PGBE6zpxhAgin8VvsQdBMHCQerWfQQ+iFFNejmpxZ074UeYNzM3IJCq+IY0RxxOH | |
KDRTCzdMhnoMqHP60xvO5DQ6knC1OEhTbP6O1IhKG3Ic2X3/0wqHAA= | |
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:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=aEkC9Jbs7Ks9o3v2GpDMb8AE/Do=; b=h6HjEnuPb0TELClybVn/Lo9A5msE | |
OD78vOR+k+VaJmHzcrgBeeeghNMJZ/2caYPYm6m+WyK8ORiLq+nvAtp3s6eIDwQ6 | |
+/KRDxDij8526c2njvfid5TSqFIXXCuog853KuTg8mhLd2an2mfU2z64L3qiRZLc | |
6xkvF6gdoZACuLw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 |
X-HELO: | calimero.vinschen.de |
Date: | Fri, 20 Nov 2015 10:26:18 +0100 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Symlink targets dereferenced when winsymlinks:native |
Message-ID: | <20151120092618.GA20182@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <564E1AA0 DOT 6070001 AT gmail DOT com> <0D835E9B9CD07F40A48423F80D3B5A702E9519BE AT USA7109MB022 DOT na DOT xerox DOT net> <564E3C5B DOT 10006 AT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <564E3C5B.10006@gmail.com> |
User-Agent: | Mutt/1.5.23 (2014-03-12) |
Note-from-DJ: | This may be spam |
--oyUTqETQ0mS9luUI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Nov 19 22:17, David Macek wrote: > On 19. 11. 2015 20:36, Nellis, Kenneth wrote: > > FWIW, my results are different: > >=20 > > $ printenv CYGWIN > > winsymlinks:nativestrict > > $ touch XXX > > $ ln -s XXX YYY > > $ ln -s YYY ZZZ > > $ ls -l > > total 0 > > -rw-r----- 1 knellis Domain Users 0 Nov 19 14:28 XXX > > lrwxrwxrwx 1 knellis Domain Users 3 Nov 19 14:28 YYY -> XXX > > lrwxrwxrwx 1 knellis Domain Users 3 Nov 19 14:28 ZZZ -> YYY > > $ uname -svr > > CYGWIN_NT-6.1 2.3.1(0.291/5/3) 2015-11-14 12:44 > > $ >=20 > Weird. I also tried in the virtual root directory, in case cygdrive affec= ts it, but no luck, still absolute paths. >=20 > I'm on Windows 10, if it makes any difference. No, I'm on W10 either and it works for me as for Kenneth. The path evaluation in the function creating native symlinks tries to create relative Windows paths if the incoming target path is relative, too. Basically it compares the path prefixes, eliminates as much of the path as possible and prepends "..\\" as required. I don't see a reason why this shouldn't work for you, unless the shell mangles the paths before passing them to the ln command (yes, this really may happen with some shells depending on settings) Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWTuc6AAoJEPU2Bp2uRE+g8LQP/i7dOpj8JZcfxMIRJbvLBlF4 kGuNW1aMG59ckHFN4GYwVTbY0eeHI5T/lcJVt26eb8xNE9cISId1hreoaj7R3SLU 0eq0fuQeDK4eUG/K1uQ2czxURGJ5hjqRAtK5k2D5O46Zh6XjZAzg68Iqz746l9aE HYQ6SIvFL8ABETTm2PMNl8Ca+19L2j9VdyqqTYhNr1Mf9F9VwWWDDjtAH/JAddYZ 4a5JEN3ijZtjgQ6fB/B/ypsrLBHA9xPjUsKJiXv3Da81p6GimZ5jlRxAKHZm50x5 mFmVFpy7kHQbSwF2ygOxFDfCBx5yewbYAtoM1x6mqwNw83Zh2sMLORf9hRhUg4R8 N8gc6ZLpAC7JzlA+YZtwpcbL7yT9pqtXGwaLoBFtzFqeBEElca9TORn1sFJIYFkb Sl1vZ8dUj8Dxbl/MJn/Jqksy+UwVMIC/YYxA5aJrWaO1QgSDro4yJ6AfiuraOqZC BqOrJ3qiZ7FblKPP6PNmlLnpf5O2OD4dXiUYuFeZR7fKz8QhstWEy+ndjAB4q9An M32tvwgak9ocrN/uhlva8s9w3exkIJ77kRwgJOclQxOBfOQNv6xRwurNa3HESyJw Zkp/aMu4rGWCT2yqwhEk1BOT/nE4erTdHAlI6/W4DQZJv2GmIwfmXbgdoLB5uXg9 JjEWLsT0A9chcfl1p+Dj =9rnC -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |