Skip directories when trying to find translators. This prevents the syslog from showing runtime_loader errors about trouble reading ELF headers on a hybrid build, as it would try to call load_add_on() on the subdir entry itself too.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32428 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -438,6 +438,9 @@ BTranslatorRoster::Private::AddPath(const char* path, int32* _added)
|
||||
|
||||
entry_ref ref;
|
||||
while (directory.GetNextRef(&ref) == B_OK) {
|
||||
BEntry entry(&ref);
|
||||
if (entry.IsDirectory())
|
||||
continue;
|
||||
if (CreateTranslators(ref, count) == B_OK)
|
||||
count++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user