Skip to content

Commit

Permalink
Fix FindSharedLibrary for relative plugin paths
Browse files Browse the repository at this point in the history
Signed-off-by: ahcorde <[email protected]>
  • Loading branch information
ahcorde committed Jun 27, 2022
1 parent eda17f5 commit 4570d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SystemPaths.cc
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,9 @@ const std::list<std::string> &SystemPaths::PluginPaths()
/////////////////////////////////////////////////
std::string SystemPaths::FindSharedLibrary(const std::string &_libName)
{
URIPath libname(_libName);
// Short circuit if the given library name is an absolute path to a file.
if (exists(_libName))
if (libname.IsAbsolute() && exists(_libName))
return _libName;

// Trigger loading paths from env
Expand Down

0 comments on commit 4570d80

Please sign in to comment.