summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqwx <devnull@localhost>2018-03-17 01:00:51 +0200
committerqwx <devnull@localhost>2018-03-17 01:00:51 +0200
commit14cd988a482d5a515880eab282cc9dff5bba98fc (patch)
treedc350a4b0a3e7e4298450aa6980a1f0cf230b615
parentf8961199dd992325bf3035f03e27b3280918a6a5 (diff)
devfs: only set configed flag if config was read successfully
this is just to retry reading the configuration at least once after an error
-rw-r--r--sys/src/9/port/devfs.c2
1 files changed, 1 insertions, 1 deletions
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);