aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2007-04-20 21:36:46 +0000
committerChong Yidong2007-04-20 21:36:46 +0000
commit923721f42588eae79a7f79cce5b411301f9451b4 (patch)
treefd5197f4c92898e8e0c974d78aee09962f673566
parent8ea8a516c383f09cd69fe3196e163547a887da4b (diff)
downloademacs-923721f42588eae79a7f79cce5b411301f9451b4.tar.gz
emacs-923721f42588eae79a7f79cce5b411301f9451b4.zip
(init_system_name): Don't accept localhost.localdomain.
-rw-r--r--src/sysdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 20d60400dcb..27e90349cb6 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2433,7 +2433,9 @@ init_system_name ()
2433 /* We still don't have a fully qualified domain name. 2433 /* We still don't have a fully qualified domain name.
2434 Try to find one in the list of alternate names */ 2434 Try to find one in the list of alternate names */
2435 char **alias = hp->h_aliases; 2435 char **alias = hp->h_aliases;
2436 while (*alias && !index (*alias, '.')) 2436 while (*alias
2437 && (!index (*alias, '.')
2438 || !strcmp (*alias, "localhost.localdomain")))
2437 alias++; 2439 alias++;
2438 if (*alias) 2440 if (*alias)
2439 fqdn = *alias; 2441 fqdn = *alias;