From 7c801356cfd18dfa6e247ab45328e29343460257 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 4 Jul 1997 18:38:36 +0000 Subject: [PATCH] (init_system_name): Don't accept "(none)" as domain. --- src/sysdep.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/sysdep.c b/src/sysdep.c index d863e23bcd4..978e7f0f622 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -2295,6 +2295,13 @@ init_system_name () domain_size *= 2; continue; } + /* If we get an answer which means "domain unknown", + don't use a domain. */ + if (!strcmp (domain, "(none)")) + { + *domain = 0; + break; + } #endif /* HAVE_GETDOMAINNAME */ strcpy (fqdn, hostname); fqdn[hostlen] = '.'; -- 2.39.2