summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-09-10 17:10:10 +1000
committerNeilBrown <neilb@suse.de>2013-09-10 17:10:10 +1000
commitdbdf3f15e7ed9d5462a6ece09dd1c57ca430d912 (patch)
tree1a1b1c49beb2b09d734e2a6a2a3bae7ce2cbec21 /config.c
parent1c0aebc2bec4d8e7e575c4222600826de3f1b73e (diff)
config: set "auto_seen" after processing the auto line.
Otherwise when we process an empty autoline (to be sure to capture the MDADM_CONF_AUTO environment variable) we can end up setting everything to 'yes' which over-rides 'no'. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r--config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.c b/config.c
index f1a70c59..a35807cc 100644
--- a/config.c
+++ b/config.c
@@ -575,6 +575,7 @@ void autoline(char *line)
if (auto_seen)
return;
+ auto_seen = 1;
/* Parse the 'auto' line creating policy statements for the 'auto' policy.
*