mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
(init_system_name): Don't accept localhost.localdomain.
This commit is contained in:
parent
8ea8a516c3
commit
923721f425
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue