Hi Andre,

Thanks for reporting that.

>   archive:  abslink -> /usr/lib/libc.so.6 , dotdotlink -> ../sibling/data
>   cpio -i --no-absolute-filenames
> 
>   tar/ustar:  abslink -> usr/lib/libc.so.6      dotdotlink -> sibling/data
>   cpio format: unchanged, both targets intact
> 
> The ../ case is the worse one,

I fully agree with that. As to stripping the initial '/', I guess it may be
retained (that's what GNU tar does, by the way). Allow me some time to
think about it. I'll get back to you in a couple of days.

> One question while I am here: copyout.c:795 passes the result of readlink()
> through cpio_safer_name_suffix as well, so cpio -o --no-absolute-filenames
> stores rewritten symlink targets in the archive.  That one is old, not from
> e2b9cbd, and for copy-out it may well be intended.  Should it be changed
> too?

No, I don't think so. That one is prtty harmless and may indeed be
desirable. Besides, it is here for long enough, so that plenty of people
might be relying on it.

Best regards,
Sergey

PS: Thanks a lot for your tactfulness in copyleft matters. I appreciate
that a lot!

Reply via email to