This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: Reading /proc/registry/... returns extra char
- From: "Nellis, Kenneth" <Kenneth dot Nellis at acs-inc dot com>
- To: <cygwin at cygwin dot com>
- Date: Thu, 13 May 2010 15:38:03 -0500
- Subject: RE: Reading /proc/registry/... returns extra char
- References: <20100513181249.GE13784@cupro.opengvs.com>
> From: Dale Stimson
> Sent: Thursday, May 13, 2010 14:13
> To: cygwin@cygwin.com
> Subject: Reading /proc/registry/... returns extra char
>
> Reading a file under /proc/registry returns an extra character at the
> end,
> which appears to be the null character.
>
> This has happened for every registry entry that I have tried. Here is
> one in particular:
> --------------------------------
> $ cat >a.dat
> /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Syst
> emBootDevice
...
Not only that, but if you pipe that output to another process, you
(or should I say "I") get a stack dump:
Cygwin> ls
Cygwin> cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SystemBootDevice
multi(0)disk(0)rdisk(0)partition(2)Cygwin>
Cygwin> ls
Cygwin> cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/SystemBootDevice | head
multi(0)disk(0)rdisk(0)partition(2)Cygwin>
Cygwin> ls
cat.exe.stackdump
Cygwin>
It seems to be reliably repeatable.
--Ken Nells