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

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
To: cygwin AT cygwin DOT com
From: Chuck <skilover AT softhome DOT net>
Subject: Re: find crashes in /proc/registry
Date: Tue, 14 Dec 2004 11:28:34 -0500
Lines: 68
Message-ID: <cpn4bj$bct$1@sea.gmane.org>
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>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT org
X-Gmane-NNTP-Posting-Host: f12d06i01.advancemags.com
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
In-Reply-To: <41BF10F4.1050406@x-ray.at>
X-IsSubscribed: yes

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

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

Fixing it so that it least works in directories that don't have * as a
file name. Perhaps the directory I used as an example was a poor choice.

$ pwd
/proc/registry/HKEY_LOCAL_MACHINE
$ ls
./  ../  HARDWARE/  SAM/  SECURITY/  SOFTWARE/  SYSTEM/

There are no *'s here but it's not displaying any of the file names that
exist below here. Just the directories, and not even all of them. For
example it's not showing anything under SAM, SECURITY, SOFTWARE, or
SYSTEM. There are more directories under HARDWARE/ACPI, but it's not
showing any of them. Whether * is a valid file name or not isn't even
the issue.

$ find .
.
./HARDWARE
./HARDWARE/ACPI
find: ./HARDWARE/ACPI: Is a directory
./HARDWARE/DESCRIPTION
find: ./HARDWARE/DESCRIPTION: Is a directory
./HARDWARE/DEVICEMAP
./HARDWARE/RESOURCEMAP
find: ./HARDWARE: Is a directory

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBvxSyzIf+rZpn0oQRArtNAJ9gVtl24mDrGrDZWK6leQCCFCM0DgCfRJbZ
V6ONOhIOPdt6Y2A/JzC+oLw=
=2R5f
-----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/

- Raw text -


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