From 47c435e531567cdfe8a440f6f1cd0246092dbd2c Mon Sep 17 00:00:00 2001 From: Robert Wespetal Date: Mon, 16 Dec 2019 13:05:00 -0800 Subject: [PATCH] mtl/ofi: ignore case when comparing provider names Change the provider include and exclude list name comparison check to ignore case. The UDP provider's name is uppercase and was being selected despite being in the exclude list. Signed-off-by: Robert Wespetal (cherry picked from commit 9b72e9465da3f2891ac13ed0443db44136506a1a) --- ompi/mca/mtl/ofi/mtl_ofi_component.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ompi/mca/mtl/ofi/mtl_ofi_component.c b/ompi/mca/mtl/ofi/mtl_ofi_component.c index 1da8f2b045..56e1d89321 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_component.c +++ b/ompi/mca/mtl/ofi/mtl_ofi_component.c @@ -293,7 +293,7 @@ is_in_list(char **list, char *item) } while (NULL != list[i]) { - if (0 == strncmp(item, list[i], strlen(list[i]))) { + if (0 == strncasecmp(item, list[i], strlen(list[i]))) { return 1; } else { i++;