From 6250a9db043dd4a5fedb441a3615fb87bc7d4fa3 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Thu, 20 Nov 1997 22:05:08 +0000 Subject: [PATCH] (init_system_name): Don't use sysinfo. --- src/sysdep.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/sysdep.c b/src/sysdep.c index e304feded3f..48d4824e7f0 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2290,10 +2290,12 @@ init_system_name () } } #endif /* HAVE_SOCKETS */ - /* We used to try using getdomainname as an alternative - to sysinfo, here, but NIIBE Yutaka says that + /* We used to try using getdomainname here, + but NIIBE Yutaka says that getdomainname gets the NIS/YP domain which often is not the same as in Internet domain name. */ +#if 0 /* Turned off because sysinfo is not really likely to return the + correct Internet domain. */ #if (HAVE_SYSINFO && defined (SI_SRPC_DOMAIN)) if (! index (hostname, '.')) { @@ -2327,6 +2329,7 @@ init_system_name () } } #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ +#endif /* 0 */ Vsystem_name = build_string (hostname); #endif /* HAVE_GETHOSTNAME */ #endif /* VMS */ -- 2.39.2