bug-cpio
[Top][All Lists]
Advanced

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

[Bug-cpio] Long path names


From: Thomas Ericsson
Subject: [Bug-cpio] Long path names
Date: Tue, 04 Feb 2014 12:19:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130917 Thunderbird/17.0.9

Hi,

Tar archives with long path names get truncated by CPIO. Consider this:

mkdir /tmp/tartest
cd /tmp/tartest/
for a in {1..100} ; do A="x" ; FILE=$FILE$A ; echo $FILE ; done | xargs touch
ls -l
cd /
tar cvf /tmp/tartest.tar /tmp/tartest/
tar tf /tmp/tartest.tar | sort | awk '{ print $0,"------ LENGTH:",length($0)}' cpio -itF /tmp/tartest.tar | sort | awk '{ print $0,"------ LENGTH:",length($0)}'

My system:
CentOS 6.4
# rpm -q tar cpio
tar-1.23-11.el6.x86_64
cpio-2.10-11.el6_3.x86_64

Any workaround on this?
Regards

--
Thomas Ericsson

---------------------------
FIDO FILM
---------------------------
Rosenlundsgatan 36, 4 tr
118 53 Stockholm, Sweden
Tel: +46 8 556 990 06
www.fido.se
---------------------------




reply via email to

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