Commit Graph

9 Commits

Author SHA1 Message Date
bms
be62d61163 Change the default behaviour of talk(1) to use "localhost" as the
"machine name" in ntalkd(8) request packets, when the destination
and source are local.

This should make talk(1) use much more pleasant for those security-
conscious individuals who have chosen to bind talkd to "localhost".

Previous to this change, talk(1) would require that the hostname of
the machine, as retrieved by gethostname(3), resolved to a valid and
reachable IPv4 address, using gethostbyname(3).

This makes talk(1) dependent on a valid host entry for "localhost"
in /etc/hosts (or the Domain Name System).

PR:		bin/23178
Submitted by:	angui.sh admin (with cleanups)
2004-06-14 22:34:13 +00:00
markm
a82545dcd4 WARNS=2 fixes with NO_WERROR set because of system-header originating
warnings. Use __FBSDID().
2001-12-11 23:51:14 +00:00
dd
bbd68b6b40 Include missing header files which define functions for which gcc has
builtints (e.g., exit, strcmp).
2001-06-24 23:22:14 +00:00
peter
3b842d34e8 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
charnier
deff56dc01 Add rcsid. Remove unused #includes (what about RU# ?). Change exit(-1) and
add usage().
1998-01-14 07:21:14 +00:00
joerg
a12cf8aa0e Make talk automagically find out the interface IP address where the
remote peer will be connected through.  This avoids the ``Checking for
invitation on caller's machine'' problem for multi-homed hosts.

Thanks to: Garrett, for his `find_interface' example
1996-03-09 19:23:01 +00:00
ache
debeeab73a Partially back out previous fix (in cases ':' and '!'),
leave case '.' as valid user name, not host reference.
Document new behaviour.
1994-10-24 05:42:34 +00:00
ache
f6e61eb7fd Remove undocumented talk behaviour, when names like
aa.bb aa:bb and aa!bb treated as user+host and not as local user
names (especially aa.bb is common case).
Only @ is valid user/host separator according to manpage.
Pointed-by: doctor@dream.demos.su
1994-10-24 03:48:44 +00:00
rgrimes
f9ab90d9d6 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00