[Patch] Encode invalid chars in /proc/registry entries (merge from 1.5)

Christian Franke Christian.Franke@t-online.de
Mon Dec 1 19:24:00 GMT 2008


This is a 1.5->1.7 merge of my patch from 
http://sourceware.org/ml/cygwin-patches/2007-q4/msg00017.html

Christian


2008-12-01  Christian Franke  <franke@computer.org>

	* fhandler_registry.cc (must_encode): New function.
	(encode_regname): Ditto.
	(decode_regname): Ditto.
	(fhandler_registry::exists): Encode name before path compare.
	(fhandler_registry::fstat): Pass decoded name to win32 registry call.
	(fhandler_registry::readdir): Return encoded name to user.
	(fhandler_registry::open): Store decoded name into value_name.
	(open_key): Pass decoded name to win32 registry call


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-1.7-regnames-encode.patch
Type: text/x-patch
Size: 4474 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20081201/cc147b0e/attachment.bin>


More information about the Cygwin-patches mailing list