aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-04 18:38:36 +0000
committerRichard M. Stallman1997-07-04 18:38:36 +0000
commit7c801356cfd18dfa6e247ab45328e29343460257 (patch)
tree159b5a9d9d046b5861f60954cab875ac2ef4d5d2 /src
parent9f4d7cde2cbb636d767da922bdf9789da3515a32 (diff)
downloademacs-7c801356cfd18dfa6e247ab45328e29343460257.tar.gz
emacs-7c801356cfd18dfa6e247ab45328e29343460257.zip
(init_system_name): Don't accept "(none)" as domain.
Diffstat (limited to 'src')
-rw-r--r--src/sysdep.c7
1 files changed, 7 insertions, 0 deletions
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 ()
2295 domain_size *= 2; 2295 domain_size *= 2;
2296 continue; 2296 continue;
2297 } 2297 }
2298 /* If we get an answer which means "domain unknown",
2299 don't use a domain. */
2300 if (!strcmp (domain, "(none)"))
2301 {
2302 *domain = 0;
2303 break;
2304 }
2298#endif /* HAVE_GETDOMAINNAME */ 2305#endif /* HAVE_GETDOMAINNAME */
2299 strcpy (fqdn, hostname); 2306 strcpy (fqdn, hostname);
2300 fqdn[hostlen] = '.'; 2307 fqdn[hostlen] = '.';