From: NeilBrown Date: Tue, 10 Sep 2013 07:10:10 +0000 (+1000) Subject: config: set "auto_seen" after processing the auto line. X-Git-Tag: mdadm-3.3.1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbdf3f15e7ed9d5462a6ece09dd1c57ca430d912;p=thirdparty%2Fmdadm.git 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 --- 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. *