From 14cd988a482d5a515880eab282cc9dff5bba98fc Mon Sep 17 00:00:00 2001 From: qwx Date: Sat, 17 Mar 2018 01:00:51 +0200 Subject: devfs: only set configed flag if config was read successfully this is just to retry reading the configuration at least once after an error --- sys/src/9/port/devfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/src/9/port/devfs.c b/sys/src/9/port/devfs.c index e5d1abe2f..e4317b991 100644 --- a/sys/src/9/port/devfs.c +++ b/sys/src/9/port/devfs.c @@ -740,7 +740,6 @@ rdconf(void) /* only read config file once */ if (configed) return; - configed = 1; dprint("rdconf\n"); /* add the std "fs" tree */ @@ -792,6 +791,7 @@ rdconf(void) e++; mconfig(p, e - p); } + configed = 1; poperror(); free(c); -- cgit v1.2.3