Blame SOURCES/0001-ibacm-acm.c-load-plugin-while-it-is-soft-link.patch

fa196d
From 91b414f645b0fdca914151280bb14a12258a56e7 Mon Sep 17 00:00:00 2001
fa196d
From: Honggang Li <honli@redhat.com>
fa196d
Date: Wed, 13 Jan 2021 11:51:04 +0800
fa196d
Subject: [PATCH] ibacm: acm.c load plugin while it is soft link
fa196d
fa196d
NOTE: THIS ONE IS RHEL SPECIFIC WORKAROUND COMMIT.
fa196d
https://github.com/linux-rdma/rdma-core/pull/923
fa196d
fa196d
Because of commit ad5d934d688911149d795aee1d3b9fa06bf171a9,
fa196d
the provider libdsap.so.1.0.0 was not opened/used for address resolution
fa196d
for OPA device.
fa196d
fa196d
As discussed in this closed PR:
fa196d
https://github.com/linux-rdma/rdma-core/pull/848
fa196d
fa196d
I create a soft link for libdsap.so => libdsap.so.1.0.0 . The soft link
fa196d
was ignored because it is a not regular file.
fa196d
fa196d
Signed-off-by: Honggang Li <honli@redhat.com>
fa196d
---
fa196d
 ibacm/src/acm.c | 2 +-
fa196d
 1 file changed, 1 insertion(+), 1 deletion(-)
fa196d
fa196d
diff --git a/ibacm/src/acm.c b/ibacm/src/acm.c
fa196d
index f1c8a2fabfb4..77ffda316b0c 100644
fa196d
--- a/ibacm/src/acm.c
fa196d
+++ b/ibacm/src/acm.c
fa196d
@@ -2878,7 +2878,7 @@ static int acm_open_providers(void)
fa196d
 			acm_log(0, "Error - could not stat: %s\n", file_name);
fa196d
 			continue;
fa196d
 		}
fa196d
-		if (!S_ISREG(buf.st_mode))
fa196d
+		if (!(S_ISREG(buf.st_mode) || S_ISLNK(buf.st_mode)))
fa196d
 			continue;
fa196d
 
fa196d
 		acm_log(2, "Loading provider %s...\n", file_name);
fa196d
-- 
fa196d
2.25.4
fa196d