NetworkManager r3280 - in branches/NETWORKMANAGER_0_6_0_RELEASE: . src/named-manager



Author: tambeti
Date: Wed Jan 30 22:34:14 2008
New Revision: 3280
URL: http://svn.gnome.org/viewvc/NetworkManager?rev=3280&view=rev

Log:
2008-01-30  Tambet Ingo  <tambet ximian com>

	* src/named-manager/nm-named-manager.c (rewrite_resolv_conf): Add some
	information on what produced the content (process name and pid).



Modified:
   branches/NETWORKMANAGER_0_6_0_RELEASE/ChangeLog
   branches/NETWORKMANAGER_0_6_0_RELEASE/src/named-manager/nm-named-manager.c

Modified: branches/NETWORKMANAGER_0_6_0_RELEASE/src/named-manager/nm-named-manager.c
==============================================================================
--- branches/NETWORKMANAGER_0_6_0_RELEASE/src/named-manager/nm-named-manager.c	(original)
+++ branches/NETWORKMANAGER_0_6_0_RELEASE/src/named-manager/nm-named-manager.c	Wed Jan 30 22:34:14 2008
@@ -368,7 +368,15 @@
 	if ((f = fopen (tmp_resolv_conf, "w")) == NULL)
 		goto lose;
 
-	if (fprintf (f, "%s","# generated by NetworkManager, do not edit!\n\n") < 0)
+	if (fprintf (f, "### BEGIN INFO\n#\n") < 0)
+		goto lose;
+	if (fprintf (f, "# Modified_by:  NetworkManager\n") < 0)
+		goto lose;
+	if (fprintf (f, "# Process:      /usr/bin/NetworkManager\n") < 0)
+		goto lose;
+	if (fprintf (f, "# Process_id:   %d\n", getpid ()) < 0)
+		goto lose;
+	if (fprintf (f, "#\n### END INFO\n\n") < 0)
 		goto lose;
 
 	/* If the ip4 config is a secondary config and has no nameservers, use the



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