From 9b72e9465da3f2891ac13ed0443db44136506a1a Mon Sep 17 00:00:00 2001 From: Robert Wespetal <wesper@amazon.com> 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 <wesper@amazon.com> --- 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 949b78a707..3be0fd86c3 100644 --- a/ompi/mca/mtl/ofi/mtl_ofi_component.c +++ b/ompi/mca/mtl/ofi/mtl_ofi_component.c @@ -330,7 +330,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++;