File strongswan_update-dns-server.dif of Package strongswan

--- src/charon/sa/ike_sa.c
+++ src/charon/sa/ike_sa.c	2008/08/28 07:31:59
@@ -2316,6 +2316,11 @@
  */
 static void remove_dns_servers(private_ike_sa_t *this)
 {
+	(void)this;
+#if 0
+	/*
+	** TODO: don't change resolv.conf => use netconfig
+	*/
 	FILE *file;
 	struct stat stats;
 	chunk_t contents, line, orig_line, token;
@@ -2391,6 +2396,7 @@
 	}
 	iterator->destroy(iterator);
 	fclose(file);
+#endif
 }
 
 /**
@@ -2398,6 +2404,12 @@
  */
 static void add_dns_server(private_ike_sa_t *this, host_t *dns)
 {
+	(void)this;
+	(void)dns;
+#if 0
+	/*
+	** TODO: don't change resolv.conf => use netconfig 
+	*/
 	FILE *file;
 	struct stat stats;
 	chunk_t contents;
@@ -2442,6 +2454,7 @@
 	fwrite(contents.ptr, contents.len, 1, file);
 	
 	fclose(file);	
+#endif
 }
 
 /**
openSUSE Build Service is sponsored by