]> git.sesse.net Git - vlc/commitdiff
Don't look for plugins from the current working directory.
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 25 Feb 2008 17:56:03 +0000 (17:56 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 25 Feb 2008 17:56:03 +0000 (17:56 +0000)
This can cause needless I/O, and consistutes a trivial local privilege esclation.

src/modules/modules.c

index 34225becd6c96561a93320ac284f480ea7e57b08..6259b1b422fdb21a44d749b9e927adea7b97db2a 100644 (file)
@@ -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;