delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/05/04/15:52:51

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5DED73848400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1620157968;
bh=Fe/PD8xuWJPR4W7cE740dI/Z3Ed3wdZH2WR4SfDjKaQ=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=EOCDDQM5EeGVFA5g+xLKopp49+w7fiPLYYeEkBv321G8yjStuUiBY12kOMq+e2LxD
P3dIgAjt8BYPPbunxuySrS1sOgrhXScWohM4eJaACx8mE31yP1qk2MQ4iVoocP/wxq
ONzlR0wfKWbiRK9iAbCM/uoMbSUHKN3sYj210WN8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 483503848400
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to;
bh=O4+DrSrY49pC3aZyjXsVrCpkJEgnjM6yC2RQ4YkLZPI=;
b=MuN88Z4pkldllMzF7fZbC6MUsNQCheZ5I6adgTKqXijxstbhTsGz9GDrZNAApQDvJl
IoQX4/civ+cccletIxtrGHqlloWhf1YRgYV9Azc7cFXFoYXKfGHJCwkfdvK1ZCxvZXk0
pvV03eEzjrM1Dlo0pokE1R7AQZswgKZI5/EWss8aFsrP20PsaacOeeJZDyBG0wmgkRDs
gopEizDmixGiV+I7MdhMPc7pQs3q5ZGkK5ROi4+5627PAjEGUACUKILqMq2XphMWNeia
d1r/pkR3GpcW6kd87ZPzIs48ntpzYe7twJQ+TwrR9Y01SbHZayhmPqhq5lpy8I21CuIT
Bh4A==
X-Gm-Message-State: AOAM532hED/Z+ezb0YSKxzJU12aHDuzwJwRgv9U86DKRHK1zvaq3fWlN
0CLtL4mCdJfZZ00viY7Ar4fjA7/YvXVjuKkp/x56xFmBfZE7Cw==
X-Google-Smtp-Source: ABdhPJz1P80LzFXtYpgFStkPCPW5AKMWFj2ODSxkBVIx+0xydPlxOWjVKb3+1UK9vFxf6lQMuU4wsb2uhIGTjJolMa4=
X-Received: by 2002:a62:dd50:0:b029:27a:69c8:55b6 with SMTP id
w77-20020a62dd500000b029027a69c855b6mr25070365pff.6.1620157964873; Tue, 04
May 2021 12:52:44 -0700 (PDT)
MIME-Version: 1.0
References: <CAGHpTBLp9tVES8=ggRkNk3HZLr-QT7n79ewKadTkWXyshBfcAw AT mail DOT gmail DOT com>
In-Reply-To: <CAGHpTBLp9tVES8=ggRkNk3HZLr-QT7n79ewKadTkWXyshBfcAw@mail.gmail.com>
Date: Tue, 4 May 2021 22:52:33 +0300
Message-ID: <CAGHpTBJHXXE6YUXjEX8wtE9wnX_wCz5HhrDKsJ_Dz2z1_f4LuQ@mail.gmail.com>
Subject: Re: realpath issue with native[strict] symlinks
To: corinna-cygwin AT cygwin DOT com, cygwin AT cygwin DOT com
X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, 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-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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Orgad Shaneh via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Orgad Shaneh <orgads AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On Tue, Apr 27, 2021 at 8:44 AM Orgad Shaneh <orgads AT gmail DOT com> wrote:
>
> On Apr 19 12:58, Corinna Vinschen via Cygwin wrote:
> > On Apr 18 10:59, Orgad Shaneh via Cygwin wrote:
>
> > I was going to write:
> >
> >   Nothing we can do about without re-implementing Cygwin's path handling
> >   from scratch.  For historical reasons, POSIX paths are evaluated in a
> >   non-POSIXy manner from right to left.  If the resulting path is an
> >   existing path, the assumption is that no inner path component is a
> >   symlink.  That's true as long as Windows didn't support
> >   symlinks/junctions and Cygwin didn't support them.
> >
> > But now I'm writing this:
> >
> >   Probably I have a workaround for this problem.  I added a certain test
> >   to the function checking the outer path component, so the checks for
> >   path validity don't stop at the outer path component, just because
> >   it's a valid Windows path.
> >
> > I pushed the patch and uploaded new developer snapshots to
> > https://cygwin.com/snapshots/
> >
> > Please give them a try.
>
> Tried now, and it works for me. Thanks a lot!
>
> - Orgad


Hi Corinna,

This change breaks access to subst drives. Reported on MSYS2:
https://github.com/msys2/msys2-runtime/pull/38#issuecomment-832160980

Can you please have a look?

Please CC me when you reply. I'm not on the mailing list.

Thank you,
- Orgad

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

- Raw text -


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