delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/12/04/05:38:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <a1f7be380812040237h56cda61br7799809c64fa00b6@mail.gmail.com>
Date: Thu, 4 Dec 2008 11:37:43 +0100
From: ColdShine <coldshine AT users DOT sourceforge DOT net>
To: cygwin AT cygwin DOT com
Subject: Re: Avoid duplicate names in /proc/registry (which may crash find) ?
In-Reply-To: <493546D3.7060808@byu.net>
MIME-Version: 1.0
References: <4934461E DOT 5040708 AT t-online DOT de> <20081202120840 DOT GM12905 AT calimero DOT vinschen DOT de> <493546D3 DOT 7060808 AT byu DOT net>
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

2008/12/2 Eric Blake <ebb9 AT byu DOT 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 from Win32 (and POSIX) file system functions taking one
argument for the file name, and the Win32 registry functions taking
two distinct arguments to form a full path (and non-ASCIIZ
length-prefixed UNICODE_STRING).

CS

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

- Raw text -


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