diff options
author | NeilBrown <neilb@suse.de> | 2012-02-16 14:11:57 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-16 14:11:57 +1100 |
commit | 9f1b0f0f1ed0dd4752be65348a24971335cd50e8 (patch) | |
tree | 36d7f1d3e30693c63053f38204f54950b4108a18 /config.c | |
parent | 1ca90aa6484a6f5d4fdd6122ad1d2015209bd8e0 (diff) |
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 <arekm@maven.pl>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |