git: 9front

Download patch

ref: ac54b76e27dac87ef7e25a7a3f143a2b22c84f14
parent: 7e8d388d4ab522cc573cf546d30d8e5ec8ab83b1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Dec 10 13:02:41 EST 2014

bootrc: keep original address when ndb/dnsgetip fails and let dial complain

--- a/sys/src/9/boot/net.rc
+++ b/sys/src/9/boot/net.rc
@@ -28,7 +28,8 @@
 	# resolve dns names
 	if(test -x /bin/ndb/dnsgetip){
 		for(i in fs auth secstore){
-			$i=`{for(x in $$i) ndb/dnsgetip -a $x}
+			x=`{for(x in $$i) ndb/dnsgetip -a $x}
+			~ $#x 0 || $i=$x
 		}
 	}
 
--