[9112] in Athena Bugs
rkinit
daemon@ATHENA.MIT.EDU (Marc Horowitz)
Fri Mar 20 14:14:22 1992
To: bug-sparc@MIT.EDU
Cc: bugs@MIT.EDU
Reply-To: Marc Horowitz <marc@MIT.EDU>
Date: Fri, 20 Mar 92 14:13:48 EST
From: Marc Horowitz <marc@MIT.EDU>
To everyone: rkinit doesn't initialize all its variables, so it can
lose. Patch:
*** /source/athena/athena.bin/rkinit/rkinit/rkinit.c Sun Jun 9 21:39:58 1991
--- rkinit.c Fri Mar 20 14:07:31 1992
***************
*** 74,79 ****
--- 74,80 ----
int i;
bzero(principal, sizeof(principal));
+ bzero(r_krealm, sizeof(r_krealm));
bzero(aname, sizeof(aname));
bzero(inst, sizeof(inst));
bzero(realm, sizeof(realm));
To bug-sparc
rkinit wasn't able to find the kerberos/udp service (chris lost on
blarney, too, so it isn't a dt thing). After linking with -lhesiod,
it was able to find the kerberos service and works fine. An updated
binary is in
/afs/net.mit.edu/project/sunsrc/build/athena/bin/rkinit/rkinit/rkinit
with a fixed Imakefile in the same dir. (I linked it on dt, someone
may want to relink with the older libc.so to avoid the ld.so error.)
Perhaps a hesiod getservbyname belongs in libc.so? I haven't tested
rkinitd at all, it may need to be relinked as well.
If you put this on the packs let me know.
Marc