From 4d6da0aefceb606fbe0d1e325402322f37680f61 Mon Sep 17 00:00:00 2001 From: Bruno Randolf Date: Thu, 28 Apr 2005 12:46:32 +0000 Subject: [PATCH] add localhost to /etc/hosts file --- lib/nameservice/src/nameservice.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/nameservice/src/nameservice.c b/lib/nameservice/src/nameservice.c index 27c6981b..1b0114dc 100644 --- a/lib/nameservice/src/nameservice.c +++ b/lib/nameservice/src/nameservice.c @@ -29,7 +29,7 @@ * */ -/* $Id: nameservice.c,v 1.11 2005/04/20 17:57:00 br1 Exp $ */ +/* $Id: nameservice.c,v 1.12 2005/04/28 12:46:32 br1 Exp $ */ /* * Dynamic linked library for UniK OLSRd @@ -620,6 +620,8 @@ write_hosts_file() fprintf(hosts, "### this /etc/hosts file is overwritten regularly by olsrd\n"); fprintf(hosts, "### do not edit\n\n"); + + fprintf(hosts, "127.0.0.1\tlocalhost\n\n"); // copy content from additional hosts filename if (my_add_hosts[0] != '\0') { -- 2.20.1