Commit d7a9b8b1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Don't look for plugins from the current working directory.

This can cause needless I/O, and consistutes a trivial local privilege esclation.
parent 0038d622
......@@ -839,9 +839,9 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
{
/* Yes, there are two NULLs because we replace one with "plugin-path". */
#if defined( WIN32 ) || defined( UNDER_CE )
const char *path[] = { "modules", "", "plugins", NULL, NULL };
const char *path[] = { "plugins", NULL, NULL };
#else
const char *path[] = { "modules", PLUGIN_PATH, "plugins", NULL, NULL };
const char *path[] = { PLUGIN_PATH, NULL, NULL };
#endif
const char *const *ppsz_path;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment