delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/05/06/13:44:52

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E742A3AAB01B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1620323089;
bh=B47ZYXvc7883zqFprDCpA+BTLtMmJz5gRe3lu81dLmk=;
h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=mBG+k5uvh/rFdLvILlphfa9qod+UX59Z363jSjwq6nsZWO7cpL+qMtdKDft4hBiBz
LujUw/EsqjAiA3ce2I+NwtxZaqggetbm6GkUAoNp1ff1CAOO4O1uKnGdExnN3br7NA
8tSB2QW8gav/04JsnSgDui06FKsI7y+asO/NST/8=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4A2BA388CC18
Date: Thu, 6 May 2021 19:44:42 +0200
To: cygwin AT cygwin DOT com
Subject: Re: realpath issue with native[strict] symlinks
Message-ID: <YJQrCvv79bHcH3Rz@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com, Orgad Shaneh <orgads AT gmail DOT com>
References: <CAGHpTBLp9tVES8=ggRkNk3HZLr-QT7n79ewKadTkWXyshBfcAw AT mail DOT gmail DOT com>
<CAGHpTBJHXXE6YUXjEX8wtE9wnX_wCz5HhrDKsJ_Dz2z1_f4LuQ AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CAGHpTBJHXXE6YUXjEX8wtE9wnX_wCz5HhrDKsJ_Dz2z1_f4LuQ@mail.gmail.com>
X-Provags-ID: V03:K1:Ay0I0GqIzKjksCMHJw2DISiWCqB+pY8xKIFZdc6wKm+7Ldt34O8
Cnj699xvyw5wQ4JoiAGMe7NpGq3wgZU4uam/94QB2PiZ7xRHRY2chJZCSrSJMsb+MDzoBbp
ILqgInL4jxBEBfB99MAm99t/JM7evQv/E4xATgpPMQPeEQo6BxA8Joy85GIS9ZbffC3qEdz
Qn4kbiwgd3do2o6m7HJLQ==
X-UI-Out-Filterresults: notjunk:1;V03:K0:sGi8ViTAUXc=:QPVNaPXe9HpxsCaMG6AZB8
1x+Hy7yqmDTBox8SoC4hxVPOs8qlM2vITSSc85bJFdEB2ml2tLJQbUC2MbZxj3sG1+lWDkPhB
zFRz8hazV6QdyWf5kJKFPse6HVKIrj6b7VLGeloXhkLgecnRdjX3ZmASpDJcR5RlhYr9CH5VR
c0n98jkaw5NeSWva3aPp1l8su0k2EDILwFGfYLoYLiyGYzM31ypRHKxkwKbVoGvw0Fkpp/eVz
3bnn+AOmQHfSXTP42M5dZP/SjoLUhBcXcG8BnigjO8M0mVW6hIrRqXhFxMiHagGr5thV3jt7j
3qwIRitBvuZLoIXjKQTTnkaxzy0A5vkPVYmJQTWgDwkkD+la0XuknuXMw3f/cUnW0pgqCyf33
c8pO+yVQja7Lbni3not0R4yCfMn+maOkP5O9KOt31M5sUmnF9QIaowh+VCtaudTH7EBua9qlv
DVyctqq7LHG6r52bH/bvl7kfpEbGveo0J0rDym80K91gTQmSXUxAxdNGD0tY8HH4DIThunIbk
JZSccsqFYHILwQPMi3xrTE=
X-Spam-Status: No, score=-100.3 required=5.0 tests=BAYES_00,
GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_NONE, 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 AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://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: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>,
Orgad Shaneh <orgads AT gmail DOT com>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>

On May  4 22:52, Orgad Shaneh via Cygwin wrote:
> 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?

Works fine for me:

  $ subst T: C:\\cygwin64\\home\\corinna\\tmp
  $ subst
  T:\: => C:\cygwin64\home\corinna\tmp
  $ ls /cygdrive/t
  bar  cygwin  foo  gawk-5.1.0  ocaml  openssh-8.5p1  recurse  tst

TAB completion works, too.


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

- Raw text -


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