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

2008-12-07 Thread Corinna Vinschen
Hi Christian, On Dec 5 23:23, Christian Franke wrote: Corinna Vinschen wrote: Maybe .val is already a good suffix? I would prefer %val to avoid any extra encoding for names using .val. The % is already used as an escape char, so %val in a name would appear as %25val Very good idea!

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

2008-12-07 Thread Christian Franke
Hi Corinna, Corinna Vinschen wrote: ... With the attached patch, a duplicate name foo is handled as follows: - readdir() returns the key as foo and the value as foo%val. - If the name is foo%val, stat() and open() consider only the value foo. This keeps the names 'as is' if possible and