# HG changeset patch # User Karl Heuer # Date 880063508 0 # Node ID 31035eff741ac0c36ad3e9d04ab3517425455445 # Parent 2befa7396e4298d4ec0dc830a9624b234c534db0 (init_system_name): Don't use sysinfo. diff -r 2befa7396e42 -r 31035eff741a src/sysdep.c --- a/src/sysdep.c Thu Nov 20 22:03:42 1997 +0000 +++ b/src/sysdep.c Thu Nov 20 22:05:08 1997 +0000 @@ -2290,10 +2290,12 @@ } } #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 @@ } } #endif /* HAVE_SYSINFO && defined (SI_SRPC_DOMAIN) */ +#endif /* 0 */ Vsystem_name = build_string (hostname); #endif /* HAVE_GETHOSTNAME */ #endif /* VMS */