diff options
author | Richard M. Stallman <rms@gnu.org> | 1997-07-04 18:38:36 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1997-07-04 18:38:36 +0000 |
commit | a785eb55f9e8a01e80f142eb48f1be579658cebd (patch) | |
tree | da4e625fae1e50c792e5b4fe8fbf69e29ba66672 /src/sysdep.c | |
parent | 19f83a581ef26a12d163c68018941faf1bcc43c9 (diff) | |
download | emacs-a785eb55f9e8a01e80f142eb48f1be579658cebd.tar.gz |
(init_system_name): Don't accept "(none)" as domain.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 7 |
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 () 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] = '.'; |