This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Reading /proc/registry/... returns extra char


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]