cdesktopenv/cde/lib/tt/lib
Jon Trulson 8c1ad2d3a8 libtt: if local hostname lookup fails, default to localhost
A recurring problem, mainly on the BSD's, and also on some Linux
installations, is a failure for ttsession to start and any clients
trying to attach to it failing due to having a hostname that is not
associated with an IP address.

This is due to code which looks up the hostname, and if it does not
have a valid host record, then TT just fails.

This has required those users to add an alias for their host name in
their /etc/hosts file.

With this commit, this should no longer be necessary.  Now, if
_XGethostbyname() fails when looking up the local name, a default of
"localhost" is used, which should always exist.

This was run tested on Linux and FreeBSD 11.1.  It was compile tested
on OpenBSD 6.2.
2018-06-20 16:59:34 -06:00
..
api Fix warnings on FreeBSD 2018-05-31 22:04:08 -06:00
db tt_old_db: use TT_DB_OK instead of NULL 2018-05-25 10:23:18 -06:00
dm Fix typo in license headers 2018-04-28 12:30:20 -06:00
mp Fix BSD and Sun problems after coverity fixes 2018-05-31 17:46:03 -06:00
tttk Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
util libtt: if local hostname lookup fails, default to localhost 2018-06-20 16:59:34 -06:00
Imakefile Enable TIRPC support for Linux 2018-04-12 21:00:34 -06:00
Mapfile-measured Initial import of the CDE 2.1.30 sources from the Open Group. 2012-03-10 18:21:40 +00:00
libtt.elist remove OSF1 support 2018-05-24 14:25:26 -06:00
mapfile.reorder Initial import of the CDE 2.1.30 sources from the Open Group. 2012-03-10 18:21:40 +00:00
mk_libtt_mapfile.sh Initial import of the CDE 2.1.30 sources from the Open Group. 2012-03-10 18:21:40 +00:00
patch.c Fix typo in license headers 2018-04-28 12:30:20 -06:00
realpath.c Fix typo in license headers 2018-04-28 12:30:20 -06:00
realpath.hp.c Fix typo in license headers 2018-04-28 12:30:20 -06:00
realpath.ultrix.c Fix typo in license headers 2018-04-28 12:30:20 -06:00
tt_const.h Fix typo in license headers 2018-04-28 12:30:20 -06:00
tt_options.h Use POSIX macros for linux 2018-05-24 18:22:55 -06:00