set tmpdir = $dir:h/_$dir:t
# Don't clobber this directory if it exists.
if (-d $tmpdir) then
- continue
+ break;
else
mkdir $tmpdir
# At some point it may be wise to check the status here and
# *****
# Give user prototype files
- # sms_untar is a setuid argv[1] tar xfp -
- (cd $tmpdir; sms_untar $uid < $USERTAR)
+ (cd $tmpdir; tar xf $USERTAR)
if ($status) set WARN
+ chown $uid.$gid $tmpdir $tmpdir/.??* $tmpdir/*
breaksw
case COURSE:
/bin/chmod 775 $tmpdir