delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/04/16/04:58:56

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 03B60386EC27
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1587027493;
bh=RtV3HgIaTXponDB2Pajpw2HIExeXrrxF3+l4bRODLI0=;
h=Date:From:To:Subject:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
Reply-To:Cc:From;
b=E6l799EEKBME3FIDHtO5A6HIMayiWKenmHirua9kSFW+9HqlGXrSJXX0tTqVMk5JZ
SnRNWPZ+IBJIMW5MI4TDt6ExLjhsJne8hsDpA5BqZP/i/n/Ae5lWuqSJtFclpOEuzP
ek9abhjR87N9Db58WdRAs6mHOiz0efgFFCswQxfg=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EB03E384A02E
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=cygwin.com
Authentication-Results: sourceware.org;
spf=fail smtp.mailfrom=corinna-cygwin AT cygwin DOT com
Date: Thu, 16 Apr 2020 10:58:07 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Symbolic link bug in recent Cygwin DLL build
Message-ID: <20200416085807.GH3943@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com, cygwin-developers AT cygwin DOT com
References: <Pine DOT BSF DOT 4 DOT 63 DOT 2004152345230 DOT 10561 AT m0 DOT truegem DOT net>
MIME-Version: 1.0
In-Reply-To: <Pine.BSF.4.63.2004152345230.10561@m0.truegem.net>
X-Provags-ID: V03:K1:VW1dllIPBuX2A8E0iiZr91PPOcDqii5AjpxFl808w2QOJHoaa80
jTJeOP55i/hAuvcdUUApNcqYWAjhsv6WmE58LgcyT5MnP8Q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7Op93
X-Spam-Status: No, score=-95.5 required=5.0 tests=BAYES_00,
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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin-developers AT cygwin DOT com
Cc: cygwin-developers AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

--===============4442844616950796498==
Content-Type: multipart/signed; micalg=pgp-sha256;
	protocol="application/pgp-signature"; boundary="p2kqVDKq5asng8Dg"
Content-Disposition: inline


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

Hi Mark,

On Apr 15 23:53, Mark Geisert wrote:
> After installing a recent DLL built from the git source tree I noticed:
>=20
> ~ ln -s /tmp/foo .
>=20
> ~ ls -l foo
> lrwxrwxrwx 1 Mark None 12 Apr 15 23:44 foo -> /mnt/tmp/foo

Huh?  That works for me, independently of /tmp/foo existing or not:

  $ ln -s /tmp/foo .
  $ ls -l foo
  lrwxrwxrwx 1 corinna Users 8 Apr 16 10:38 foo -> /tmp/foo

Since you're building the DLL yourself, can you please debug this with
GDB?  It would be very important to find out what on your system adds
the /mnt prefix!

It could occur in creating the symlink, that's in path.cc, function
symlink_wsl(), or it could occur in reading the symlink, path.cc,
function check_reparse_point_target(), in the else if (rp->ReparseTag =3D=3D
IO_REPARSE_TAG_LX_SYMLINK) branch at line 2534.

As for /mnt itself, it's the WSL equivalent to the cygdrive prefix.
When creating WSL symlinks, Cygwin converts the cygdrive prefix to
/mnt, and when reading WSL symlinks, a leading /mnt is converted
to the current cygdrive prefix on the fly.

We should just move further discussions to the cygwin-developers ML.


Thanks,
Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--p2kqVDKq5asng8Dg
Content-Type: application/pgp-signature; name="signature.asc"

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

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl6YHh8ACgkQ9TYGna5E
T6APXw/+NBHdSucvnwkvamdHltBPywJKTNx2B9SopaoxsbiJgfFu1HIck0yhj01Z
vE8LMxSt/Mhvk7Du0ntRE0HwN7P/u5iZReKn9/YD8KSxOrctQnA5IZL9nU4oLivP
hWnxlumQDgI5PffGgUtM9W3dMDnERHoGV5WSHxkU83o5Qk3lzeBUttBWvjZcP7DR
STn7+XXxBRwTCwwrz/ZwcLSAB0jv0IELBl5jDOCfVsndNtpoD7qBRHCHYNXngm5n
ne4hK1Bn/oiGJp6CM9mC9jIEXqrvneA9TEHFL9q+Zik0v2+T0XUb7RZei3hn5sZx
LdCeICd4RLx/ZU/SO5bIJIUfNps0Oq9b8LyPot9zhhxDkE9IKT7E3kUHI7Fkp39M
z0r0kuTqT0D4MZUHwHI7o4c3GbvMxwLduSWs33ZfTsVzD4+bC8Libi9c6+ZiW1iZ
1J7nkTug4sdLt7BZ5sE7+O8SEmv2aTpl3379lzF7sR59CManYEK/NHXVTJtqwy/A
frSwGIE46uaXuEPjC5EQ89ntvXCrlL0OGnNRu4pgMOr6KhUv+eb6q0+kGW0tcHJ9
FaZIyrXettfGVHsw46GV/iF6zSxtJ3vC47oRDzfF7xL3BVtiI7Q3t7mVohTICZh2
WArs+ZdS9f/Lrz8kIO09HctZDg+IJDMUYfe+133PGzSoUCD5jZU=
=1z/f
-----END PGP SIGNATURE-----

--p2kqVDKq5asng8Dg--

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

--===============4442844616950796498==--

- Raw text -


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