From 9f1b0f0f1ed0dd4752be65348a24971335cd50e8 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Thu, 16 Feb 2012 14:11:57 +1100 Subject: [PATCH] config: conf_match should ignore devname when not set. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.2