delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/13/06:14:34

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:message-id:from:to:subject
:content-type:date:in-reply-to:references; q=dns; s=default; b=L
/ZUvpodHhbdUsj/m/Jk1QKplbAIzQP1/fld9AU4xXkK26Zut2wl35xParVIIEgiz
hxlImGN0aY9Fuow7ZSR9zk3lVkkssf841AXgJY5YDQ4nOcGviovIPp2dW3POCPbR
Z35pyRKO7a78VRjxLbOGwr+DkysG32uK/ymYk626rw=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:mime-version:message-id:from:to:subject
:content-type:date:in-reply-to:references; s=default; bh=kB13VIx
zT9QlDiA4+j+Y2VWUe7U=; b=vXZZGwJVRygtw9+iXYyvwKl0RN1UIjCM7q7cGhS
nwnnRTf3/zNW2eZ2/yo5oqrYpldeqCnfRViLfB3BbPC6N/61vx3u+HLK+6GndQQs
AvdpNn8i368Bl9PyCIqi6bX99P46yBCg02ehjIUCFuVlsJ4o1lJenEdaxwPeClui
pnhg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=shares, urge, whoever, mounted
X-HELO: mout.gmx.net
MIME-Version: 1.0
Message-ID: <trinity-bc977f4a-d31b-4cf6-be60-493433b38724-1528884853707@3c-app-gmx-bs06>
From: "Sven Eden" <sven DOT eden AT gmx DOT de>
To: cygwin AT cygwin DOT com
Subject: Re: Problematic interpretion of paths starting with double slashes
Date: Wed, 13 Jun 2018 12:14:13 +0200
Sensitivity: Normal
In-Reply-To: <20180613080953.GR7851@calimero.vinschen.de>
References: <trinity-82173dac-d842-4a87-8d1f-bed9a958d178-1528793630066 AT 3c-app-gmx-bs08> <dc8418d2-2004-97f0-2d8c-ab438f007eba AT redhat DOT com> <trinity-2aa37c55-032a-4631-9d8f-657ecd85e170-1528809265158 AT 3c-app-gmx-bs08> <87efhbdbaz DOT fsf AT Rainer DOT invalid> <20180613080953 DOT GR7851 AT calimero DOT vinschen DOT de>
X-UI-Message-Type: mail
X-IsSubscribed: yes

> Gesendet: Mittwoch, 13. Juni 2018 um 10:09 Uhr
> Von: "Corinna Vinschen" <corinna-cygwin AT cygwin DOT com>
> On Jun 12 22:01, Achim Gratz wrote:
> > Sven Eden writes:
> > > Doing a simple stat on / if (and only if) the UNC lookup
> > > fails, does not endanger anything. It wouldn't break
> > > anything or do any other damage. Besides from adding an
> > > additional <0.01s lag to any failed access that *really*
> > > meant a network share.
> > >
> > > So no. Adding this tiny extra functionality wouldn't break
> > > anything for anybody, but allowed the usage of software that
> > > relies on the non-cygwin behaviour. (And is outside the
> > > users control.)
> >
> > Well, it does break things if both
> >
> > //this/or/that
> > /this/or/that
> >
> > exist and then at some point host "this" becomes unreachable. So I'd
> > keep //unc/path to mean just that on principle.
> 
> ACK
> 


True, if /this isn't just a mount point for //this, meaning
that the "that"s are two different files.

Apart from the urge to question the sanity of anybody
setting something up like that, I see that this is a serious
objection to consider.

I mean, seriously, something like that *is* prone to typos,
and whoever does that will end up manipulating/using the
wrong file rather often anyway.

Which leads to the point that such a setup makes injecting
not mounted network shares like that quite dangerous...

Just my thoughts... Doesn't matter anymore anyway, as my main
question of interest was answered. ;-)

Sven

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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