X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=AWL,BAYES_00,SPF_SOFTFAIL
X-Spam-Check-By: sourceware.org
Message-ID: <497C72F8.8040503@byu.net>
Date: Sun, 25 Jan 2009 07:11:04 -0700
From: Eric Blake <ebb9@byu.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.19) Gecko/20081209 Thunderbird/2.0.0.19 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com, mailinglist@dazjorz.com,
   debian-kcygwin-devel@lists.sourceforge.net
Subject: Re: [bugreport] Two slashes should not indicate remote machine or  special  directory
References: <497C6D52.5050504@dazjorz.com>
In-Reply-To: <497C6D52.5050504@dazjorz.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Sjors Gielen on 1/25/2009 6:46 AM:
> Hey all,
> 
> In Cygwin (the CVS version), it seems paths starting with two slashes
> are "special paths" for accessing remote machines or bypassing the mount
> table.
> 
> This however is incompatible with Linux, where i.e. //etc is a valid
> path. See, for example: (`ls` indicators removed for readability)

Not only is it perfectly compatible with Linux, but it is allowed by
POSIX.  This is a design decision that all portable programs must be aware
of - you cannot blindly use '//' to mean '/', and not just because of cygwin.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_266
http://www.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap04.html#tag_04_12
"A pathname that begins with two successive <slash> characters may be
interpreted in an implementation-defined manner, although more than two
leading <slash> characters shall be treated as a single <slash> character."

> 
> Therefore, I'm suggesting to remove "//" as a
> special path from conv_to_win32_path.

Won't happen.  We've intentionally defined it as a synonym for Windows
\\server\share notation.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkl8cvgACgkQ84KuGfSFAYAjLwCgpNtZ6rI3GH5tS17hIf6TqS/y
yy8AnA6kIKR0UZpC6TucdUXikckJgCF/
=/nTJ
-----END PGP SIGNATURE-----

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

