shithub: riscv

Download patch

ref: f94167ebeebc108f393b3b2ec279cee2afae56e7
parent: 65337bec22bb587facaf032feac39a8beb2a09cd
author: cinap_lenrek <[email protected]>
date: Thu Feb 2 17:00:51 EST 2017

ip/ipconfig: don't write /net/ndb when getting config from ndb (-N)

--- a/sys/src/cmd/ip/ipconfig/main.c
+++ b/sys/src/cmd/ip/ipconfig/main.c
@@ -648,7 +648,7 @@
 		dhcpwatch(0);
 
 	/* leave everything we've learned somewhere other procs can find it */
-	if(beprimary)
+	if(beprimary && !dondbconfig)
 		putndb();
 }