It seems that there is a bug in the 2.7 version of cpio which one of my co-workers found. This is what he writes:
Version 2.7 (the newest released) has the bug. It is fixed in cvs but no minor rev has been shipped. The patch I found is really small to fix the bug I encountered but there are a bunch of other changes in cvs since the 2.7 release and I don't know how important any of those are for us. The bug causes symlinks to point to incorrect locations on copyout. This is a serious issue for openpkg since rpms are cpio archives and everything we are building can be affected. http://www.mail-archive.com/[EMAIL PROTECTED]/index.html search for symlink on that page. You can see more info in debian bug #412799 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=412799 http://savannah.gnu.org/bugs/index.php?18094 http://savannah.gnu.org/file/cvs-diff.log?file_id=11044 -------------------- diff -p -u -r1.19 copyout.c --- src/copyout.c 27 Sep 2006 09:28:50 -0000 1.19 +++ src/copyout.c 24 Oct 2006 10:47:38 -0000 @@ -806,6 +806,7 @@ process_copy_out () free (link_name); continue; } + link_name[link_size] = 0; cpio_safer_name_suffix (link_name, false, !no_abs_paths_flag, true); link_size = strlen (link_name); -------------------- FYI. -- David M. Fetter - UNIX Systems Administrator Portland State University - www.oit.pdx.edu
signature.asc
Description: This is a digitally signed message part