X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0EF18385E013
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1585335225;
	bh=KgEAWPhxeiI80Y7xd+vNJAbgDliDGcElHpcHNeBYc8M=;
	h=Date:From:To:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 Reply-To:From;
	b=PicwbsFh1RNmKYdmQwaFKtHwXJ9vYt8SGh19IKkPMNtzqAg8c42rnre1BtsjOQxF1
	 CquxiKPuL3A/mNqZ1ww1e495YqFyLQiUdqe0SPCedCqJYC1JAK8VYNxjR8PfQ8ZTII
	 rSxhD+hL/cW0XTZMGVURkem+waVMdQ+R7EUY1yeA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 3A027385E010
Authentication-Results: sourceware.org;
 dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
 spf=fail smtp.mailfrom=corinna-cygwin@cygwin.com
Date: Fri, 27 Mar 2020 19:53:40 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: WSL symbolic links
Message-ID: <20200327185340.GN3261@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <294944bd-757e-4bb8-6bcc-ceb8d9190ef9@towo.net>
 <20200326110059.GG3261@calimero.vinschen.de>
 <901e1c08-46cb-555b-c0d0-5bf9c726b3ca@SystematicSw.ab.ca>
 <20200326200548.GK3261@calimero.vinschen.de>
 <bc0451f2-a1a7-3044-5b0a-119b91d19f9f@SystematicSw.ab.ca>
MIME-Version: 1.0
In-Reply-To: <bc0451f2-a1a7-3044-5b0a-119b91d19f9f@SystematicSw.ab.ca>
X-Provags-ID: V03:K1:EaZmUL6P8k0IaNSTBQtEx6haoLTFnN80qRyu5EOiY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PhtjfTmScL9UH4fbCsUGvKXfwdmh9/F+x+CjOr2BzsS2ug5DniqquRvbLhNVIO
X-Spam-Status: No, score=-88.6 required=5.0 tests=BAYES_00, BODY_8BITS,
 GIT_PATCH_2, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_NEUTRAL,
 TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <http://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: multipart/mixed; boundary="===============2188678981892284687=="
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>


--===============2188678981892284687==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="rf72Gf+bfLC8kxKs"
Content-Disposition: inline


--rf72Gf+bfLC8kxKs
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mar 27 11:58, Brian Inglis wrote:
> On 2020-03-26 14:05, Corinna Vinschen wrote:
> > On Mar 26 13:12, Brian Inglis wrote:
> >> On 2020-03-26 05:00, Corinna Vinschen wrote:
> >>> On Mar 26 10:00, Thomas Wolff wrote:
> >>>> A symbolic link created with WSL is neither interpreted in cygwin no=
r can it
> >>>> be deleted:
> >>>>> touch file
> >>>>> wsl ln -s file link
> >>>>> wsl ls -l link
> >>>> lrwxrwxrwx=C2=A0=C2=A0=C2=A0 1 towo=C2=A0=C2=A0=C2=A0=C2=A0 towo=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 Mar=
 26 08:56 link -> file
> >>>>> ls -l link
> >>>> -rw-r----- 1 Unknown+User Unknown+Group 0 Mar 26 00:00 link
> >>> What kind of file are they in the real world?  Reparse points?  If so,
> >>> what content do they have?  I attached a Q&D source from my vault
> >>> of old test apps to check on reparse point content.  Please compile w=
ith
> >>>   gcc -g ../src/rd-reparse.c -o rd-reparse -lntdll
> >>> It takes a single native NT path as parameter, kind of like this:
> >>>   ./rd-reparse '\??\C:\cygwin64\home\corinna\link'
> >> They should be WSL or Windows mklink (soft) links, and the reason why =
mklink was
> >> allowed unelevated in Windows 10 with Developer mode.
> >> In an *elevated* shell:
> >> $ ls -dln u
> >> -rw-r----- 1 4294967295 4294967295 0 Nov  9 06:09 u
> >                ^^^^^^^^^^^^^^^^^^^^^
> > This is unknown user, unknown group, which means, the Windows
> > function LookupAccountSid() probably returned a domain name which
> > is unknown (neither account domain, nor primary, nor trusted domain).
> >=20
> > An strace of `ls -l u' may be helpful...
>=20
> Attached with startup environment, locale, and message setup cut (reduced=
 by
> 100KB), and rest sanitized as below. Could DM/PM original on request.

Thanks!  This should already be fixed in the latest developer snapshot
after I was finally able to install WSL myself.  See my reply to Thomas
in https://sourceware.org/pipermail/cygwin/2020-March/244211.html

All the effects are a result of not opening the reparse point as reparse
point, as weird as it sounds at first :)


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--rf72Gf+bfLC8kxKs
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl5+S7QACgkQ9TYGna5E
T6Dmew//QlMaongrHFLDYVCM9xDxGBAtkH+zJJumw8OLOj2c3HvtAW94A/hZMCnH
PMgq+c5I+dulsVcLkDW/9dE7DRcE4mI9+lhETTgpQtFb8cafPdGiv5ec8Au64ifI
CGOaQy8lkZ4pgggTehiNY2wFhRDhFJXbwt/J8ln5QHKhEDIvcf4I2KQeRlYSSJHY
WdLSmptsuLRznawfCOy0M27sF5fbJSNZIneXGt/2nSMgUcnjSSMrNF6M5Rdi0npC
VuqbGNt+fim9e2zSZ739vhEmJkGb5LXjmEBEhNj3cG/xCOIfQR0b4GEO9m45K/mX
VIs41ZIv8jcm1YXMjC1oLdBMZgH5Hbd5A6YNXQbNAKNgJAfbxw8eSLs15L58GQKM
gEyLd7OGFE94P+FcvFrYm5KAN6/fR5h0L2JfG02J5f4W61xjiuv+mWjAVxrhhwYx
X6BVubOECJaatmcGgL0uDLydsJx5rJMuo6JgvBSMdMOpPqdD7E4gk8I6VZmPx7DQ
BPcDBz3zXTu3Yi+2oeBHdjl34ESuF5VPIYgmWWUrEdMmMUXTDKaBkDmFvNeuCVnT
HX3oHK3pnDLl3qJRH5oP8nPLT767L3c5eZnlDUyCr+m0/W/Nnr1JAtjBSQGudMTD
oGmqy9P7PAseE+D4MG2VJZg+Q+3TrDBRQ/nuS4BF98rKKHwHEfk=
=qtpF
-----END PGP SIGNATURE-----

--rf72Gf+bfLC8kxKs--

--===============2188678981892284687==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--
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

--===============2188678981892284687==--
