X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Thu, 4 Dec 2008 13:30:40 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Avoid duplicate names in /proc/registry (which may crash find) 	?
Message-ID: <20081204123040.GE12905@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <4934461E.5040708@t-online.de> <20081202120840.GM12905@calimero.vinschen.de> <493546D3.7060808@byu.net> <a1f7be380812040237h56cda61br7799809c64fa00b6@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <a1f7be380812040237h56cda61br7799809c64fa00b6@mail.gmail.com>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@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

On Dec  4 11:37, ColdShine wrote:
> 2008/12/2 Eric Blake <ebb9@byu.net>:
> >
> > [...] the problem is [...] that Windows allows the registry to violate
> > filesystem semantics by giving the same name to distinct contents.
> 
> If I'm allowed to add some further examples (which are probably known
> to most, but maybe not to all), registry value names allow *any*
> Unicode character (including NUL, sic! - thanks UNICODE_STRING), so
> the following is completely ambiguous, even though valid:
> 
> /proc/registry/.../parentkey/subkey/value/with/slashes
> 
> where the actual value name is "value/with/slashes" (sic!).

That's why Cygwin prints the file name as

  /proc/registry/.../parentkey/subkey/value%2Fwith%2Fslashes

thanks to a patch from Christian Franke.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

