[PATCH] Add search domain to resolv.conf



Hi List

The attached patch adds the missing search domain line to resolv.conf

Please verify that is it correct, I'm no C coder so this is the best I
could do. "it works for me" ;)

Cheers
Rene
diff -ru NetworkManager-0.3.3.old/named/nm-named-manager.c NetworkManager-0.3.3/named/nm-named-manager.c
--- NetworkManager-0.3.3.old/named/nm-named-manager.c	2005-01-18 17:55:50.000000000 +0100
+++ NetworkManager-0.3.3/named/nm-named-manager.c	2005-02-03 19:31:08.899733168 +0100
@@ -603,6 +603,10 @@
 		goto lose;
 	}
 #else
+ 	if (fprintf (f, "%s%s", searches, "\n" ) < 0) {
+ 		g_free (searches);
+ 		goto lose;
+ 	}
 	g_hash_table_foreach (mgr->priv->global_ipv4_nameservers,
 			      write_nameserver,
 			      f);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]