Do not load .dSYM plugins

This commit is contained in:
pancake 2017-07-27 23:06:03 +02:00
parent d9cf73469d
commit ec6240da09

View File

@ -370,7 +370,7 @@ R_API int r_lib_opendir(RLib *lib, const char *path) {
return false;
}
while ((de = (struct dirent *)readdir (dh))) {
if (de->d_name[0] == '.') {
if (de->d_name[0] == '.' || strstr (de->d_name, ".dSYM")) {
continue;
}
snprintf (file, sizeof (file), "%s/%s", path, de->d_name);