git: 9front

Download patch

ref: 4ca1d56a3c6a8e76bacf6a630095ec3ba3362084
parent: 46cd79b35d3aa131dde45e1020e195de29c671ec
author: qwx <devnull@localhost>
date: Fri Mar 16 21:00:51 EDT 2018

devfs: only set configed flag if config was read successfully

this is just to retry reading the configuration at least once after an error

--- a/sys/src/9/port/devfs.c
+++ b/sys/src/9/port/devfs.c
@@ -740,7 +740,6 @@
 	/* only read config file once */
 	if (configed)
 		return;
-	configed = 1;
 
 	dprint("rdconf\n");
 	/* add the std "fs" tree */
@@ -792,6 +791,7 @@
 			e++;
 		mconfig(p, e - p);
 	}
+	configed = 1;
 	poperror();
 	free(c);
 
--