From a3dfc55a7d5ba4dd09489fe3f6fb14aff95db901 Mon Sep 17 00:00:00 2001 From: Brian Bockelman Date: Sun, 29 Jul 2018 23:03:16 -0500 Subject: [PATCH] Load the SFS symbol from the correct library. Previously, the SFS symbol was loaded from the global namespace instead of the dlopen'd handle, meaning the correct SFS was not actually loaded. --- src/XrdTpc/XrdTpcConfigure.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/XrdTpc/XrdTpcConfigure.cc b/src/XrdTpc/XrdTpcConfigure.cc index abf757c20ea..bef8bd93807 100644 --- a/src/XrdTpc/XrdTpcConfigure.cc +++ b/src/XrdTpc/XrdTpcConfigure.cc @@ -29,7 +29,7 @@ static XrdSfsFileSystem *load_sfs(void *handle, bool alt, XrdSysError &log, cons sfs = ep(prior_sfs, log.logger(), configfn, &myEnv); } else { XrdSfsFileSystem_t ep = (XrdSfsFileSystem *(*)(XrdSfsFileSystem *, XrdSysLogger *, const char *)) - (dlsym(NULL, "XrdSfsGetFileSystem")); + (dlsym(handle, "XrdSfsGetFileSystem")); if (ep == NULL) { log.Emsg("Config", "Failed to load XrdSfsGetFileSystem from library ", libpath.c_str(), dlerror()); return NULL;