jonab@sdcrdcf.UUCP (Jonathan Biggar) (05/30/84)
We are currently testing 4.2bsd in preparation to bring it up
permanently, and have run into a problem with talk.
When talk is run, it hangs up looking for a local invitation
from the target person. I have run the talk daemon with
debuging on, and the LOOKUP packet is received by the talk
daemon. It then says that it is sending a reply but it never
gets back to talk. Does anyone have any suggestions?
Jon Biggar
{allegra,burdvax,cbosgd,hplabs,ihnp4,sdccsu3}!sdcrdcf!jonabsml@mulga.OZ (Steven Law) (05/31/84)
[]
If your 'talk' works when you specify the terminal i.e.
'talk uid ttyxx', then the following bug fix should work for you.
In the file get_names.c it sets his_tty to (char *)0
if you don't give a tty number. Later it copies TTY_SIZE chars
from there into the request structure. On our system it copies
garbage. The following diff gives the simple fix:
diff get_names.c get_names.c.bad
101,105c101,102
< if (his_tty) {
< strncpy(msg.r_tty, his_tty, TTY_SIZE);
< msg.r_tty[TTY_SIZE - 1] = '\0';
< } else
< msg.r_tty[0] = '\0';
---
> strncpy(msg.r_tty, his_tty, TTY_SIZE);
> msg.r_tty[TTY_SIZE - 1] = '\0';
-----
" 'Twas Mulga Bill from Eaglehawk, that caught the cycling craze."
Steven Law.
decvax!mulga!sml