]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
config: set "auto_seen" after processing the auto line.
authorNeilBrown <neilb@suse.de>
Tue, 10 Sep 2013 07:10:10 +0000 (17:10 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 10 Sep 2013 07:10:10 +0000 (17:10 +1000)
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>
config.c

index f1a70c59f971575212a2c4d1937f6c586316b6f1..a35807ccae3510e3620aa5a6426d4ef4ee2804f4 100644 (file)
--- 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.
         *