Date: Sat, 1 Feb 2014 06:20:11 GMT From: Gen Otsuji <gen_otsuji_aka_go@yahoo.co.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/186330: [libarchive] tar error containing fisrt '/' char and hard links Message-ID: <201402010620.s116KBj4020337@oldred.freebsd.org> Resent-Message-ID: <201402010630.s116U1pC036321@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 186330 >Category: bin >Synopsis: [libarchive] tar error containing fisrt '/' char and hard links >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 01 06:30:01 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Gen Otsuji >Release: 10.0-RELEASE >Organization: >Environment: FreeBSD r10 10.0-STABLE FreeBSD 10.0-STABLE #0 r261305: Fri Jan 31 13:38:29 JST 2014 amd64 >Description: When the archive to extract is containing the first character '/' in the paths , and containing hard link files, bsd tar cannot create the files. Also notice this problem occurs on the different filesystems. In the example below , 1) /bin/csh and /bin/tcsh are hard link. 2) The reason why I write cd /tmp, /bin and /tmp are on the different filesystems. 3) the test.cpio contains the first character '/' in the paths . and this problem is not only in the cpio archive , but also in the tar archive as in the example below. so this is a bug in libarchive. >How-To-Repeat: # echo tmpfs=YES >> /etc/rc.conf # echo tmpsize=1g >> /etc/rc.conf # service tmp start # cd /tmp # find /bin/csh /bin/tcsh | cpio -o > test.cpio # tar xvpf test.cpio tar: Removing leading '/' from member names x bin/csh x bin/tcsh: Can't create 'bin/tcsh' tar: Error exit delayed from previous errors. # tar xvpf test.cpio /bin/tcsh tar: Removing leading '/' from member names x bin/tcsh: Can't create 'bin/tcsh' tar: Error exit delayed from previous errors. # pkg fetch zsh-5.0.5 # tar xf /var/cache/pkg/All/zsh-5.0.5.txz -C /tmp tar: Removing leading '/' from member names usr/local/bin/rzsh: Can't create 'usr/local/bin/rzsh' usr/local/bin/zsh-5.0.5: Can't create 'usr/local/bin/zsh-5.0.5' tar: Error exit delayed from previous errors. >Fix: workaround: use gnu tar >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402010620.s116KBj4020337>