	trap : 1 2
	if [ -r /etc/coredirs  -a  ! -f $$installpkg ]
	then
		#	A problem in cpio makes it change the modes and
		#	ownership of directories it did not create.  This trick
		#	records and later restores the existing values.  The
		#	directories to be protected are listed in /etc/coredirs.
		cpio -o </etc/coredirs >$$installpkg 2>/dev/null
	fi
	trap '' 1 2
