delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/16/09:51:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <41C1A0CE.1020401@x-ray.at>
Date: Thu, 16 Dec 2004 15:50:54 +0100
From: Reini Urban <rurban AT x-ray DOT at>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.8a4) Gecko/20040927
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: find crashes in /proc/registry
References: <cpl2v0$b0d$1 AT sea DOT gmane DOT org> <20041213215844 DOT GA30011 AT trixie DOT casa DOT cgf DOT cx> <cpn24o$3du$1 AT sea DOT gmane DOT org> <41BF10F4 DOT 1050406 AT x-ray DOT at> <Pine DOT GSO DOT 4 DOT 61 DOT 0412151302150 DOT 2298 AT slinky DOT cs DOT nyu DOT edu>
In-Reply-To: <Pine.GSO.4.61.0412151302150.2298@slinky.cs.nyu.edu>
X-IsSubscribed: yes

Igor Pechtchanski schrieb:
> On Tue, 14 Dec 2004, Reini Urban wrote:
>>Chuck schrieb:
>>>Christopher Faylor wrote:
>>>| On Mon, Dec 13, 2004 at 04:52:31PM -0500, Chuck wrote:
>>>|>I don't know if this has been reported before
>>>|
>>>| It has.
>>>| The conclusion?
>>>| Don't use find on /proc.
>>
>>>Are there any plans to fix it? Thanks.
>>
>>How?
>>'*' is by POSIX definition an invalid filename character.
>>'*' is by MS definition a valid registry key, which is mapped into a virtual
>>file-system.
> 
> 
> '*' is a valid filename character (if not, please cite the part of POSIX
> that claims that).  AFAIK, the only invalid filename character is '/',
> which is a directory separator.  The problem with /proc/registry is that
> '/' is a valid value name character, so keys like
> "HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin"
> end up as "/proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygnus\
> Solutions/Cygwin/mounts\ v2'/usr/bin'", which any Cygwin program
> (including bash) will choke on.

Yep, sorry for wrong posts. I mixed that up with FAT/NTFS limitations. 
Which have nothing to do with our proc_fs.

>>If the findutils maintainer decides to add a /proc/registry patch to
>>make '*' a valid filename char, other fileutils should be fixed also.
>>ls and cat at least.
>>
>>So it should be better "fixed" in cygwin. How?
>>Make it a valid file character there?
>>How not to break all other file-,find-,text-,shellutils then, which will have
>>to deal with this and glob expansion.
>>
>>Replace it by some other character? Which?
> 
> If there's a solution, it should probably have something in common with
> managed mounts...

Just a simple find patch is needed.
-- 
Reini Urban


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