From 91079ddc77238cabf02afb51ccb9bdbbf5218355 Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Mon, 25 Jan 2010 22:25:18 +0200 Subject: [PATCH] plugins must match "lib*_plugin"LIBEXT, not just "*"LIBEXT --- src/modules/modules.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/modules/modules.c b/src/modules/modules.c index 267267c730..aef282251a 100644 --- a/src/modules/modules.c +++ b/src/modules/modules.c @@ -898,10 +898,11 @@ static void AllocatePluginDir( vlc_object_t *p_this, module_bank_t *p_bank, AllocatePluginDir (p_this, p_bank, path, i_maxdepth - 1); else if (S_ISREG (st.st_mode) - && ((size_t)pathlen >= strlen (LIBEXT)) - && !strncasecmp (path + pathlen - strlen (LIBEXT), LIBEXT, - strlen (LIBEXT))) - /* ^^ We only load files ending with LIBEXT */ + && strncmp (path, "lib", 3) + && ((size_t)pathlen >= sizeof ("_plugin"LIBEXT)) + && !strncasecmp (path + pathlen - strlen ("_plugin"LIBEXT), + "_plugin"LIBEXT, strlen ("_plugni"LIBEXT))) + /* ^^ We only load files matching "lib*_plugin"LIBEXT */ AllocatePluginFile (p_this, p_bank, path, st.st_mtime, st.st_size); free (path); -- 2.39.2