Package: cpio
Version: 2.6-11
Severity: important

I am seeing certain archives created by cpio -o -H ustar come out
unextractable by either tar or cpio.  It appears to be data dependent.
The ones that work, work reliably, and the ones that fail, fail
repeatably in the same spot.

Backing up the /bin directory of a current Debian/i386 system seems
to be a good source of failures...

devastator:~# cd /
devastator:/# find bin -true -print | cpio -o -H ustar > /tmp/check-bin.tar
6937 blocks
devastator:/# cd /tmp/root-restore
devastator:/tmp/root-restore# cpio -i -H ustar < ../check-bin.tar 
cpio: premature end of file
devastator:/tmp/root-restore# ls
bin
devastator:/tmp/root-restore# ls bin
ae
devastator:/tmp/root-restore# rm -r bin
devastator:/tmp/root-restore# tar -xvf ../check-bin.tar
bin/
bin/ae
bin/dd
bin/cp
bin/df
bin/ed
bin/ln
bin/ls
bin/nc
bin/mt
bin/mv
bin/ps
bin/rm
bin/sh
bin/su
bin/vi
bin/cat
bin/csh
bin/dir
bin/pwd
bin/sed
bin/tar
bin/bash
bin/arch
bin/date
bin/cpio
bin/echo
bin/grep
bin/gzip
bin/kill
bin/more
bin/ping
bin/tcsh
bin/stty
bin/sync
bin/true
bin/vdir
bin/zcat
bin/zcat
tar: Skipping to next header
tar: Error exit delayed from previous errors
devastator:/tmp/root-restore# 

It's interesting that tar shows that it is attempting to restore bin/zcat
twice, right at the point it errors out.  Perhaps that's a clue as to the
nature of the error.

I have verified that this bug also exists in cpio 2.6-10.  I haven't yet
checked any other versions.

I have saved off my check-bin.tar, and will provide it on request.  I just
didn't want to attach it with the bug report because even bzip2'ed, it's
still > 1MB.



-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages cpio depends on:
ii  libc6                         2.3.6-4    GNU C Library: Shared libraries an

cpio recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to