-# Only files starting with $uchost, install_, and list- are needed.
-# The files starting with list- are needed because the credentials
-# files are hard links to them. Tar will fail if they are not extracted.
-foreach file (`/bin/tar tf $TARFILE | awk '{print $1}'`)
- if (($file =~ ./${uchost}*) || \
- ($file =~ ./install_*) || \
- ($file =~ ./list-*)) then
- tar xf $TARFILE $file
- if ($status) exit $SMS_TARERR
- endif
-end
+# Just extract everything since some of what we need exists as
+# hardlinks and tar doesn't deal well with extracting them in isolation.
+tar xf $TARFILE
+if ($status) exit $SMS_TARERR