From: utzoo!decvax!genradbo!linus!smk
Newsgroups: net.unix-wizards,net.bugs
Title: bug fix for cpio
Article-I.D.: linus.1514
Posted: Fri Dec 31 14:07:59 1982
Received: Sat Jan  1 03:10:06 1983

	There is a bug in the system III cpio, which we are
using on our 4.1 system.  In converting from Version 6 based
systems, there is  check to see if directories should be
created.  The Filetype variable is declared as short
and is anded to the mode of the file.  If the 6 command line
flag is used, the expression is sign extended and does not
match S_IFDIR.  The fix is simply to make Filetype an integer
for VAX systems.  (I guess it could be unsigned, but I
didn't check it out since we were planning a major move and I
had to get this up right away.)  Otherwise, the files are
never seen as directories, and subdirectories are never created.
	--steve