[uClibc] Re: mkcramfs bug: devicelist and subdirs

Erik Andersen andersen at codepoet.org
Thu May 6 09:57:57 UTC 2004


On Fri Apr 23, 2004 at 06:48:52PM +0100, Chris Wilson wrote:
> Hi Erik,
> 
> I think I found a small bug in your cramfs patch, which I guess you ported 
> from mkfs.jffs2.c. Therefore this bug might apply to mkfs.jffs2.c as well.
> 
> When searching for a file (or device node) to create in a subdirectory, 
> mkcramfs doesn't remove the parent's path component which it's already 
> matched. This prevents the sought node from ever being found if it lives 
> in a subdirectory. This was triggered by "/dev/net/tun" in the supplied 
> device_table.txt, since mkcramfs cannot find "/dev/net" in order to 
> create the "tun" entry inside it. The attached patch should fix it.
> 
> Right, that's three patches for one day, I'm going home now :-)

Thanks,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list