[Patch] Avoid duplicate names in /proc/registry (which may crash find)

Christian Franke Christian.Franke@t-online.de
Mon Dec 15 20:32:00 GMT 2008


Corinna Vinschen wrote:
> On Dec 13 14:37, Christian Franke wrote:
>   
>>
>> 2008-12-13  Christian Franke  <franke@computer.org>
>>
>> 	* fhandler_registry.cc (DEFAULT_VALUE_NAME): Remove constant.
>> 	(encode_regname): Encode empty (default) name to "@".
>> 	Encode "@" to "%40".  Change error return to -1.
>> 	(decode_regname): Decode "@" to empty name.  Decode "%40" to "@".
>> 	(fhandler_registry::exists): Skip check for keys if name is empty.
>> 	Remove check for DEFAULT_VALUE_NAME, now handled by decode_regname ().
>> 	(fhandler_registry::readdir): Remove check for empty name, now
>> 	handled by encode_regname ().
>> 	(fhandler_registry::open): Remove check for DEFAULT_VALUE_NAME.
>> 	(fhandler_registry::open_key): Fail with ENOENT if key name is empty.
>>     
>
> Thanks for the patch.  Can you resend it against the latest version
> of fhandler_registry.cc, please?  It doesn't apply cleanly anymore.
>
>
>   

New patch is attached, changelog is still valid.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-1.7-registry-defval-2.patch
Type: text/x-diff
Size: 5461 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20081215/f084fda7/attachment.bin>


More information about the Cygwin-patches mailing list