delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/07/16:01:38

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,TW_YG,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <20101206131337.GA25347@calimero.vinschen.de>
References: <AANLkTimiq=V_MenP+jfdNPM8EEfRCGWn3hQ7K+BMaD2F AT mail DOT gmail DOT com> <20101204150728 DOT GB26471 AT calimero DOT vinschen DOT de> <20101206113429 DOT GC17176 AT calimero DOT vinschen DOT de> <AANLkTiniHkPnP=0MCPT7vP7FAGRCcs-1NEYC2rA7B546 AT mail DOT gmail DOT com> <20101206131337 DOT GA25347 AT calimero DOT vinschen DOT de>
Date: Tue, 7 Dec 2010 21:01:27 +0000
Message-ID: <AANLkTimvGd-wpnb6b0+_XJkZ1BEdskEcBEmP0+qJE4PU@mail.gmail.com>
Subject: Re: cygpath -w for non-existent server
From: Andy Koppe <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On 6 December 2010 13:13, Corinna Vinschen wrote:
> On Dec =C2=A06 11:59, Andy Koppe wrote:
>> On 6 December 2010 11:34, Corinna Vinschen wrote:
>> > - "//foo" is a virtual path, valid only in Cygwin. =C2=A0You can't acc=
ess
>> > =C2=A0"\\foo" in the Win32 API using file or directory access function=
s. =C2=A0It
>> > =C2=A0just doesn't exist as a path. =C2=A0UNC paths are only valid wit=
h at least
>> > =C2=A0two path components as in "\\server\share". =C2=A0Since "//foo" =
is a
>> > =C2=A0virtual path, there's no Win32 equivalent. =C2=A0So, from the Wi=
ndows
>> > =C2=A0perspective there's "No such file or directory".
>>
>> Weird. "\\server" works fine in Explorer and also with cygstart, so I
>> guess Explorer implements it as some sort of virtual directory.
>
> That's right.
>
>> Is
>> that enough reason to support it as a special case in the Cygwin path
>> conversion?
>
> Huh, now I see the problem. =C2=A0*Existing* virtual server-only paths
> are converted, only non-existent aren't. =C2=A0I fixed that in CVS.

Fix confirmed. Thanks!

Andy

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