aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-01 10:44:51 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-09-01 10:44:51 +0000
commit29998781c14d6963df8d602d5201e4b298407792 (patch)
tree85e7f8c6cb00d1dde81578fc8c5dd3277a76f269
parentd1ae95a6f9ea830a0e7eb04461b848c394774117 (diff)
downloadpaludis-29998781c14d6963df8d602d5201e4b298407792.tar.gz
paludis-29998781c14d6963df8d602d5201e4b298407792.tar.xz
Be more picky about which repository .so files we load
-rw-r--r--paludis/repository_so_loader.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/paludis/repository_so_loader.cc b/paludis/repository_so_loader.cc
index 3daff58..67a78a3 100644
--- a/paludis/repository_so_loader.cc
+++ b/paludis/repository_so_loader.cc
@@ -17,6 +17,7 @@
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include <paludis/about.hh>
#include <paludis/util/system.hh>
#include <paludis/util/fs_entry.hh>
#include <paludis/util/dir_iterator.hh>
@@ -101,7 +102,8 @@ RepositorySoLoader::load_dir(const FSEntry & so_dir)
if (d->is_directory())
load_dir(*d);
- if (! IsFileWithExtension(".so")(*d))
+ if (! IsFileWithExtension(".so." + stringify(100 * PALUDIS_VERSION_MAJOR +
+ PALUDIS_VERSION_MINOR))(*d))
continue;
void * dl(dlopen(stringify(*d).c_str(), RTLD_LOCAL | RTLD_NOW));