HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8ea8a51
)
(init_system_name): Don't accept localhost.localdomain.
author
Chong Yidong
<cyd@stupidchicken.com>
Fri, 20 Apr 2007 21:36:46 +0000
(21:36 +0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Fri, 20 Apr 2007 21:36:46 +0000
(21:36 +0000)
src/sysdep.c
patch
|
blob
|
blame
|
history
diff --git
a/src/sysdep.c
b/src/sysdep.c
index
20d6040
..
27e9034
100644
(file)
--- 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;