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. Fix: workaround: use gnu tar 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.
For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped