From: Chong Yidong Date: Fri, 20 Apr 2007 21:36:46 +0000 (+0000) Subject: (init_system_name): Don't accept localhost.localdomain. X-Git-Tag: emacs-pretest-22.0.99~134 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=923721f42588eae79a7f79cce5b411301f9451b4;p=emacs.git (init_system_name): Don't accept localhost.localdomain. --- 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 () /* We still don't have a fully qualified domain name. Try to find one in the list of alternate names */ char **alias = hp->h_aliases; - while (*alias && !index (*alias, '.')) + while (*alias + && (!index (*alias, '.') + || !strcmp (*alias, "localhost.localdomain"))) alias++; if (*alias) fqdn = *alias;