diff options
| author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-10-14 01:04:44 +0000 |
|---|---|---|
| committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1998-10-14 01:04:44 +0000 |
| commit | f73e2ce42e0144bdd82944ab869fd9fda70ce613 (patch) | |
| tree | e19ae4a5c214e68cb21bb174fff74ee726a5582d /release/sysinstall/config.c | |
| parent | 39048e2d62be678fe8ceedfcc405d9d6471d2a6c (diff) | |
Notes
Diffstat (limited to 'release/sysinstall/config.c')
| -rw-r--r-- | release/sysinstall/config.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/release/sysinstall/config.c b/release/sysinstall/config.c index 6b590bfc58c5..9c9ca8c0eb02 100644 --- a/release/sysinstall/config.c +++ b/release/sysinstall/config.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: config.c,v 1.112 1998/09/30 11:49:34 jkh Exp $ + * $Id: config.c,v 1.113 1998/09/30 12:33:28 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -577,7 +577,10 @@ skip: if (!fp) return; /* Add an entry for localhost */ - fprintf(fp, "127.0.0.1\t\tlocalhost.%s localhost\n", dp ? dp : "my.domain"); + if (dp) + fprintf(fp, "127.0.0.1\t\tlocalhost.%s localhost\n", dp); + else + fprintf(fp, "127.0.0.1\t\tlocalhost\n"); /* Now the host entries, if applicable */ if (cp && cp[0] != '0' && hp) { char cp2[255]; |
