From: RĂ©mi Denis-Courmont Date: Mon, 25 Jan 2010 20:25:18 +0000 (+0200) Subject: plugins must match "lib*_plugin"LIBEXT, not just "*"LIBEXT X-Git-Tag: 1.1.0-ff~885 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=91079ddc77238cabf02afb51ccb9bdbbf5218355;p=vlc plugins must match "lib*_plugin"LIBEXT, not just "*"LIBEXT --- 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);