From owner-freebsd-hackers Wed Jul 12 20: 2: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp03.mrf.mail.rcn.net (smtp03.mrf.mail.rcn.net [207.172.4.62]) by hub.freebsd.org (Postfix) with ESMTP id 0161D37BDB5 for ; Wed, 12 Jul 2000 20:02:06 -0700 (PDT) (envelope-from jacobson@pobox.com) Received: from 208-59-96-60.s60.tnt1.trpr.pa.dialup.rcn.com ([208.59.96.60] helo=home.my.domain) by smtp03.mrf.mail.rcn.net with esmtp (Exim 3.15 #2) id 13CZGF-0003tV-00 for hackers@freebsd.org; Wed, 12 Jul 2000 23:02:04 -0400 Received: from home (joe@localhost [127.0.0.1]) by home.my.domain (8.9.3/8.9.3) with ESMTP id XAA03941 for ; Wed, 12 Jul 2000 23:02:00 -0400 (EDT) (envelope-from joe@home.my.domain) Message-Id: <200007130302.XAA03941@home.my.domain> To: hackers@freebsd.org Subject: Why isn't localhost used by talk? From: Joseph Jacobson Date: Wed, 12 Jul 2000 23:01:59 -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 Finger for PGP #include 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