From: NeilBrown Date: Thu, 16 Feb 2012 03:11:57 +0000 (+1100) Subject: config: conf_match should ignore devname when not set. X-Git-Tag: mdadm-3.2.4~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f1b0f0f1ed0dd4752be65348a24971335cd50e8;p=thirdparty%2Fmdadm.git config: conf_match should ignore devname when not set. mapfile:RebuildMap calls conf_match with no devname, so we must be careful not to use it. Reported-by: Arkadiusz Miƛkiewicz Signed-off-by: NeilBrown --- diff --git a/config.c b/config.c index 6027b2f3..d8f48e13 100644 --- a/config.c +++ b/config.c @@ -1045,7 +1045,7 @@ struct mddev_ident *conf_match(struct supertype *st, array_list->devname); continue; } - if (array_list->devices && + if (array_list->devices && devname && !match_oneof(array_list->devices, devname)) { if (verbose >= 2 && array_list->devname) fprintf(stderr, Name