changeset 18604:9f1bc5e1e4a8

(init_system_name): Don't accept "(none)" as domain.
author Richard M. Stallman <rms@gnu.org>
date Fri, 04 Jul 1997 18:38:36 +0000
parents 525fb9a7cc96
children 0567c4086813
files src/sysdep.c
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Fri Jul 04 18:36:58 1997 +0000
+++ b/src/sysdep.c	Fri Jul 04 18:38:36 1997 +0000
@@ -2295,6 +2295,13 @@
 	      domain_size *= 2;
 	      continue;
 	    }
+	  /* If we get an answer which means "domain unknown",
+	     don't use a domain.  */
+	  if (!strcmp (domain, "(none)"))
+	    {
+	      *domain = 0;
+	      break;
+	    }
 #endif /* HAVE_GETDOMAINNAME */
 	  strcpy (fqdn, hostname);
 	  fqdn[hostlen] = '.';