This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problematic interpretion of paths starting with double slashes
- From: "Sven Eden" <sven dot eden at gmx dot de>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Jun 2018 12:14:13 +0200
- Subject: Re: Problematic interpretion of paths starting with double slashes
- References: <trinity-82173dac-d842-4a87-8d1f-bed9a958d178-1528793630066@3c-app-gmx-bs08> <dc8418d2-2004-97f0-2d8c-ab438f007eba@redhat.com> <trinity-2aa37c55-032a-4631-9d8f-657ecd85e170-1528809265158@3c-app-gmx-bs08> <87efhbdbaz.fsf@Rainer.invalid> <20180613080953.GR7851@calimero.vinschen.de>
- Sensitivity: Normal
> Gesendet: Mittwoch, 13. Juni 2018 um 10:09 Uhr
> Von: "Corinna Vinschen" <corinna-cygwin@cygwin.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