From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36484 invoked by alias); 20 Nov 2015 09:26:22 -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 36466 invoked by uid 89); 20 Nov 2015 09:26:22 -0000 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 Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Nov 2015 09:26:20 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 20D5DA8069E; Fri, 20 Nov 2015 10:26:18 +0100 (CET) Date: Fri, 20 Nov 2015 09:26:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Symlink targets dereferenced when winsymlinks:native Message-ID: <20151120092618.GA20182@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <564E1AA0.6070001@gmail.com> <0D835E9B9CD07F40A48423F80D3B5A702E9519BE@USA7109MB022.na.xerox.net> <564E3C5B.10006@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <564E3C5B.10006@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00289.txt.bz2 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1373 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 Content-length: 819 -----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--