#!/bin/sh
#
# This illustrates a bug that cpio has on some systems.   It  produces
# files  that  may  be  empty, or may be the correct size, but full of
# nulls.  This code came from John Young <jyoung@ap.org>.

D=/tmp/TEST.cpio

mkdir $D
cd $D
mkdir a
cd a
cp -p /etc/passwd /etc/group /etc/hosts .
cd ..
find a -print | cpio -pudmv .

