[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-cpio] cpio 2.6 bug

From: Nigel Kukard
Subject: [Bug-cpio] cpio 2.6 bug
Date: Mon, 27 Jun 2005 09:43:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050106


Ummm... I think I found a bug in cpio 2.6.

I was building a kernel initramfs using this ...

find . > ../filelist.cpio
cpio -H newc --verbose -o < ../filelist.cpio | gzip -9 >

The filelist contains about a hundred files, most of which are symlinks,
when using cpio 2.5 I get a 2Mb cpio archive. Using 2.6 I get a cpio
archive a few hundred Mb big.

The bug relates to the handling of symlinks, it looks like its
dereferencing the link.

I checked the source (copyout.c) and saw it looks for 2 defines S_ISLNK
and CP_IFLNK, both of these are defined.

You can test it out by creating about 50 symlinks to libc.so.6, then run
the commands above.

Please let me know if this is an error on my side, or what I can do to
help find the problem.

Kind Regards

Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]