[comp.bugs.sys5] Bug in SysVr3.2.1 cpio ??????

vch@attibr.UUCP (Vincent C. Hatem) (02/24/89)

We seem to have found a bug in the AT&T System V R 3.2.1 Version 3 (for the
3B2/600) /bin/cpio program...

It will not unpack an archive that contains a directory of empty directories.

For example... Try this:

cd /usr
mkdir junk1
cd junk1
mkdir a
mkdir b
mkdir c
mkdir d
mkdir e
cd /
find /usr/junk1 -depth -print | cpio -ovBumldO /dev/rmt/c1t2d0s0


then remove /usr/junk1:

rm -rf /usr/junk1

and give it a try:

cpio -ivBumldI /dev/rmt/c1t2d0s0

After watching all the WARNING messages go by, look at the directory junk1.

IT WILL BE EMPTY.

This occurs when unpacking only, and the archive is actuclly good (I unpacked
it on a 3.1.1 system, and it worked)

Is YOUR cpio like this one?

# ls -l /bin/cpio
-r-xr-xr-x    1 bin      bin        38020  Jun 20 1988 /bin/cpio

# sum /bin/cpio
4022 75 /bin/cpio


Well, UNIX developers, what's the story? Got a fix?

Vince Hatem   (att!attibr!vch)
	&
Mike Matthews (att!attibr!atti01!mjm)

PS: Please respond to Mike, as I'll be gone after Firday...

-- 
Vincent C. Hatem
e-mail: {any Action Central site || att}!attibr!vch
snail-mail: AT&T International, 1200 Mt. Kemble Ave, Basking Ridge, NJ 07920
tele: +1-201-953-7959         ------ Gruezi wohl! -------