delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/11/18/14:48:43

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=JbAG3DX27viQpIgou1fapRqeTP/1yv9AUTtsvZGpEbfTzJTIdN4Cq
SW8eqiwh/l7uTS9dsACRTWV8xXDy3/tekDxSOcHKm/tr9RtDwZfIoEbjnxHzdjn4
SLnO/cDA0J6a1/NbOg1aPTTSaCN9HUqqrCbR5T0AnDj+f7L+8KI6X8=
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=lxHr/rQp46SUizjfW9lF/RufQJQ=; b=yn6M9tZBveIz9WYJG0lhFZKJ+JC/
0ifpkITu0/rp7j8tvZU38ibwPZsfm1aihiMll/VzynTqp49B/7umKnHVtM8lS6qr
krTuBFq2wsEdST0OLw71OzUpOqYjlPZngHlIug+IMPq2GGrrFKe+9O0Do67jxPMz
AUZ9zu1A99WhyNA=
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: Wed, 18 Nov 2015 20:48:19 +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: <20151118194819.GV6402@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <564BAA1A DOT 8000703 AT gmail DOT com> <20151118175503 DOT GT6402 AT calimero DOT vinschen DOT de> <564CBFCC DOT 4020605 AT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <564CBFCC.4020605@gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)

--KaGhPsiNaI6/sRd6
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Nov 18 19:13, David Macek wrote:
> 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.
>=20
> Should that behaviour stay?

Yes.  Consider that neither Cygwin or Interix symlinks with SYSTEM bit
set, nor symlinks using WIndows shortcuts make any sense as part of a
native symlink.  As a result, Cygwin does a full path conversion from
POSIX to symlink-less Windows path to crate native symlinks.

> If not, I can send a patch for the UG.

UG?

> > Thanks for the report, I'll apply a matching patch.
>=20
> Cool.

https://sourceware.org/git/?p=3Dnewlib-cygwin.git;h=3D8cdd7bad219ba2657e381=
bd0d716594c50a6ef62


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--KaGhPsiNaI6/sRd6
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWTNYDAAoJEPU2Bp2uRE+g9sQP/i5yJE38QL2W04ZpgPtjRYu/
TZ/PpA7SqJ4iX1vuvZR1bk0aQtPHP2QQz2bcjJVw2CVHKYvZOrEIixzz8o+iaIkp
D/VtBVFeD7Fvwd0x/MJY3jTLQQVoA+5Pw5KVinWpwnLbcwDclVXW833aCX4N0mU1
p54AvZ6rc+FcL4tvy/VGHTFkDX2Nkwq+RlnrzXVK34V63aR+lWwLP92IvfYK9b7w
w5Jg+6OCTKhedCOhM/7o132xwtnt7yn3KelAxZk83q2t6Hy6MM9A++NTwCM+7+/m
tZXG/+tk+Ghefw1FYfUuot3cfur7IXfW4L+04pVJizrBszVT1bNpO4bo9xNYJ1C7
TwJ5pcotlsburY09O34Ovii1SRZSemd8oF9I5CvD8skZY4rhT8gK6xEOaBWqpLJ3
TwF2L3R7mRhV45OIpW2KUvnSISKjD1IBboyAenqurFip2I52KhW37lXC3nCnW415
F1dv8zfzOCGDHT1OlNXNKZ/OpdQM6zDcE2QliRD4eAafcnfYeFYcV4eXP/t2BrFm
fO5lVdhBZqeoKnxlRf0HXtVatg1USq1S6eOXCs7ID+ppuzGHrALiMzAFQvS3wTR1
o6K7vD3dATDk4Bk4b5wc94PDoC9pIU4cHERoe/vT1R+JyCVkTsx+rjbht9HmbnlS
4EX5hUKaDxw4xfojiEj+
=K6gl
-----END PGP SIGNATURE-----

--KaGhPsiNaI6/sRd6--

- Raw text -


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