From 18eb262b4e06b5f60fbb2744ca5d158f644351b4 Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 2 Jun 1989 12:04:46 +0000 Subject: [PATCH] fix list extraction problems --- gen/nfs.sh | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/gen/nfs.sh b/gen/nfs.sh index 9c4c1170..166223a3 100644 --- a/gen/nfs.sh +++ b/gen/nfs.sh @@ -35,17 +35,10 @@ set uchost=`/bin/hostname | tr a-z A-Z`.MIT.EDU cd $SRC_DIR -# 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 foreach type (dirs quotas) echo "Installing ${type}:" -- 2.45.1