X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/2ce085d2e49282262e1b49b636a43d5a45c23e18..564ed5a8e2cbe2868f33e0e28e55aaac1e047b8e:/gen/install_dirs diff --git a/gen/install_dirs b/gen/install_dirs index c22e7a7f..a5ce77ed 100644 --- a/gen/install_dirs +++ b/gen/install_dirs @@ -32,7 +32,7 @@ while (1) 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 @@ -56,9 +56,9 @@ while (1) # ***** # 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