changeset 77349:ddd98fc21199

(init_system_name): Don't accept localhost.localdomain.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 20 Apr 2007 21:36:46 +0000
parents 9fa5e9cd5e93
children 7cc0a079620f
files src/sysdep.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Fri Apr 20 21:36:38 2007 +0000
+++ b/src/sysdep.c	Fri Apr 20 21:36:46 2007 +0000
@@ -2433,7 +2433,9 @@
 		/* 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;