projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f4d7cd
)
(init_system_name): Don't accept "(none)" as domain.
author
Richard M. Stallman
<rms@gnu.org>
Fri, 4 Jul 1997 18:38:36 +0000
(18:38 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Fri, 4 Jul 1997 18:38:36 +0000
(18:38 +0000)
src/sysdep.c
patch
|
blob
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index d863e23bcd4cebcebd6c5d173a6c439212f0f4ca..978e7f0f622b48ba9c82395c05e759b9053f3df3 100644
(file)
--- 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] = '.';