[Patch] Avoid duplicate names in /proc/registry (which may crash find)
Mon Dec 15 20:32:00 GMT 2008
Corinna Vinschen wrote:
> On Dec 13 14:37, Christian Franke wrote:
>> 2008-12-13 Christian Franke <firstname.lastname@example.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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5461 bytes
Desc: not available
More information about the Cygwin-patches