[2369] in Athena Bugs
Re: 6.2A mkserv
daemon@ATHENA.MIT.EDU (probe@ATHENA.MIT.EDU)
Sun Jun 11 11:00:02 1989
From: <probe@ATHENA.MIT.EDU>
Date: Sun, 11 Jun 89 10:59:48 -0400
To: ops@ATHENA.MIT.EDU, shanzer@ATHENA.MIT.EDU
Cc: bugs@ATHENA.MIT.EDU
Reply-To: Richard Basch <probe@ATHENA.MIT.EDU>
Probably, the easiest thing to do to get the 6.2A mkserv script is to do
the following:
setenv SRVDIR /urvd/root/servers
/srvd/servers/mkserv ...
Mike: you told me to make /srvd/servers a link to /urvd... the result
was that the `pwd` test broke. May I suggest the following change:
From:
if ($?SRVDIR == 0) setenv SRVDIR /srvd/servers
chdir $SRVDIR
---> if (`pwd` != $SRVDIR) then
echo "Can't find standard server install directory."
exit 1
endif
To:
if ($?SRVDIR == 0) setenv SRVDIR /srvd/servers
chdir $SRVDIR
---> if ($status) then
echo "Can't find standard server install directory."
exit 1
endif
This will eliminate any problems with symlink traversal. There are
probably a dozen ways to do this, but I thought I would suggest one very
quickly.
-Richard