[1473] in testers
rt Update: update script
daemon@ATHENA.MIT.EDU (daemon@ATHENA.MIT.EDU)
Mon Dec 17 13:26:44 1990
From: qjb@ATHENA.MIT.EDU
Date: Mon, 17 Dec 90 13:26:25 -0500
To: testers@ATHENA.MIT.EDU
System name: soup
Type and version: RTPC-ROMPC Update
Display type: apa16
What were you trying to do?
running mkserv update to check my .private script
What's wrong:
/etc/rc.conf now has KRBSRV=SOUP.MIT.EDUSOUP.MIT.EDU
(i.e., an extra SOUP.MIT.EDU was inserted)
I moved my .private script out of the way to make sure
that it wasn't causing problems. The next time,
KRBSRV=SOUP.MIT.EDUSOUP.MIT.EDUSOUP.MIT.EDUSOUP.MIT.EDU
It is just doubling each time.
What should have happened:
It should have seen that KRBSRV was neither true nor
false and left it alone.
The problem is simple: This line in kerberos.add
/bin/sed -e "s/^KRBSRV=[a-z]*/KRBSRV=${KRBSRV}/" \
should be changed to
/bin/sed -e "s/^KRBSRV=[^;]*/KRBSRV=${KRBSRV}/" \
so that any non-; characters following the = will be replaced
instead of just lower-case ones.