Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jul 2000 23:01:59 -0400
From:      Joseph Jacobson <jacobson@pobox.com>
To:        hackers@freebsd.org
Subject:   Why isn't localhost used by talk?
Message-ID:  <200007130302.XAA03941@home.my.domain>

next in thread | raw e-mail | index | archive | help


Local to local talk doesn't work if the hostname for the box doesn't
match any an ip on any interface.  Although this sounds wierd, consider 
a non-dedicated ppp link.  Although you can get around this problem with
'talk user@localhost', POLA would say talk should default to localhost.
I couldn't think of any good reason why this shouldn't be the case.


Patch follows.

Joe

----------8<----------8<----------8<----------8<----------8<----------
*** get_names.c.orig	Wed Jul 12 22:38:16 2000
--- get_names.c	Wed Jul 12 21:52:17 2000
***************
*** 86,91 ****
--- 86,92 ----
  		;
  	if (*cp == '\0') {
  		/* this is a local to local talk */
+ 		strcpy(my_machine_name,"localhost");
  		his_name = argv[1];
  		his_machine_name = my_machine_name;
  	} else {
----------8<----------8<----------8<----------8<----------8<----------

--
Joseph Jacobson <jacobson@pobox.com>    Finger for PGP
#include <std/disclaimer.h>
One should not underestimate roses.
Men have died over a difference in their color.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007130302.XAA03941>