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

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