don't load symlinks when trying to discover control protocol shared objects
git-svn-id: svn://localhost/ardour2/branches/3.0@12257 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d914c4ec89
commit
1d75f753d8
@ -19,6 +19,8 @@
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
#include <glibmm/fileutils.h>
|
||||
|
||||
#include "pbd/compose.h"
|
||||
#include "pbd/file_utils.h"
|
||||
#include "pbd/error.h"
|
||||
@ -220,6 +222,13 @@ ControlProtocolManager::control_protocol_discover (string path)
|
||||
{
|
||||
ControlProtocolDescriptor* descriptor;
|
||||
|
||||
/* don't load shared objects that are just symlinks to the real thing.
|
||||
*/
|
||||
|
||||
if (Glib::file_test (path, Glib::FILE_TEST_IS_SYMLINK)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if ((descriptor = get_descriptor (path)) != 0) {
|
||||
|
||||
if (!descriptor->probe (descriptor)) {
|
||||
|
Loading…
Reference in New Issue
Block a user