X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7757395C041
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1606918434;
	bh=4bHYPBxt8VjHHMjzpsGB1GVZlCIIZJORm4uQOJT5xU8=;
	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=KIDl1e5cAUB+C2Nh0t387HZKkNMPbA8I90zwzF22Zi9JwM39so+AMSoXx77v2esXi
	 3iThsxLFagx7frKGGNzITDzE6HMq+m37GlFGFmViwKEP3omiOsy5+VBPZzw1l41wky
	 qcDHYvy3gc9a0hZdM+pedOPaA7YFJgZuvz7PIGys=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org BCC66395C041
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: Wed, 2 Dec 2020 15:13:47 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygwin1.dll > 3.1.4: Program execution fails if (WSL-)symlink
 exists and is present in PATH
Message-ID: <20201202141347.GR303847@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <3160909720eb427892eb38221a611953@frims060.wamas.com>
 <66ac6d01-3ae9-5bd3-46a2-9a4e66647e45@cornell.edu>
 <20201202133905.6355182479af1f61971dc8a4@nifty.ne.jp>
 <20201202140557.GQ303847@calimero.vinschen.de>
 <7c12fbc2-2d45-5b36-d31b-1bc0edc7fb7d@towo.net>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <7c12fbc2-2d45-5b36-d31b-1bc0edc7fb7d@towo.net>
X-Provags-ID: V03:K1:fROHO7wNlbkQiQZBIiUBc9btNtbYDPHOyKFkP7/maPqEgkyVwU0
 H2udiWIofs1aedpXRLT2+6a/fwKTP5aOjuMZeAqzeWpRM/uOuKCpNUW0Ki8mw5d0yZY62eM
 FsvxK0o1Kxd3xtiQ2QL8fIGBprP65n4FH9ogxOLFJJAiVH5JapSfN6KfjyvMqureIV+ZOm4
 wcq66wwbPe9osUFwxXvcg==
X-UI-Out-Filterresults: notjunk:1;V03:K0:NRDPNVzoEk4=:17OMpxQ0prgPFrCQfxxoPm
 u58AytvBS1D/nvuY5PN3SmjjwoiCDigDjqpFT+12vQOUBUJwt0Shsi1NiFpnIjSgZqJ6yJrEC
 jkVXDain4uojfOLyiTGNyPPIen9/Uabz3VumWSWky/Jw6AE1ULmTkpWRs2NH6J9oH92iF7a4y
 2L6C42Hh5qHX6ze7UMtWjQZUeGEKXoIZGEXry1U75hp9dGJQsiF2y/P/V5CbiIY8JD5UXmR9R
 UzwEG/ts+xWRURo2A4Arv3VT3thyt/HBCGxE5c0Sc2AzAq5TXBQyp22jy45MCH3TBDJknRA3f
 oOVFsl6eQIgDnk5/SqLvm46JUzgOsi9bBVMO7hF/eZm7lcssUEMUrffQP3gqXbypxEV9M6kIB
 kNxpFmvz9kHITLLMYlMfGe573FbGisdAI84zS1xxJ8Fpek+Iok0kvpZrIQd0z51vTYcTea1u5
 kZJAMWZpYQ==
X-Spam-Status: No, score=-100.6 required=5.0 tests=BAYES_00,
 GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS,
 RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, 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: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Reply-To: cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces@cygwin.com
Sender: "Cygwin" <cygwin-bounces@cygwin.com>

On Dec  2 15:07, Thomas Wolff wrote:
> 
> 
> Am 02.12.2020 um 15:05 schrieb Corinna Vinschen:
> > On Dec  2 13:39, Takashi Yano via Cygwin wrote:
> > > On Tue, 1 Dec 2020 19:13:39 -0500
> > > Ken Brown via Cygwin <cygwin@cygwin.com> wrote:
> > > > On 12/1/2020 4:24 AM, Mattl Mario wrote:
> > > > > Hello,
> > > > > 
> > > > > Since cygwin1.dll version 3.1.5, I observed the following behavior:
> > > > > If a symbolic link is existing in the PATH environment, programs (external from Cygwin's system directory) using cygwin1.dll cannot be executed anymore.
> > > > > Possibly, because the Cygwin-DLL isn't found anymore.
> > > > > 
> > > > > Steps to reproduce:
> > > > > 
> > > > > cd /
> > > > > mkdir link_test
> > > > > cp /usr/bin/sed.exe link_test
> > > > > ln -s link_test test
> > > > > export PATH=/test:/link_test:/usr/bin:/bin
> > > > > 
> > > > > /link_test/sed cannot be executed
> > > > > $ ldd /link_test/sed
> > > > >           ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ffffd960000)
> > > > >           KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ffffd140000)
> > > > >           KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ffffa8e0000)
> > > > >           SYSFER.DLL => /cygdrive/c/WINDOWS/System32/SYSFER.DLL (0x550c0000)
> > > > > 
> > > > > -> no cygwin- DLLs found
> > > > > [...]
> > > > I think this was fixed by commit 4b4fffe0f2390be6a5be27b6a3ceaa212a3724b2, but I
> > > > don't have time to check carefully, and I'm going to be AFK for a few days
> > > > starting tomorrow.
> > > I can reproduce this issue with current git head even with
> > > the commit 4b4fffe0f2390be6a5be27b6a3ceaa212a3724b2.
> > Just looking into it.  It has something to do with missing to resolve
> > a WSL symlinks to a Windows path, but I'm not sure yet where this occurs.
> Actually I confirmed the issue too and I did not have to involve WSL, cygwin
> ln -s led to the behaviour.

WSL isn't involved, WSL symlinks (created by Cygwin) are.


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