Skip to content

Commit 9425a14

Browse files
committed
Don't try to dlopen() directories during plugin search
1 parent fa6dcf2 commit 9425a14

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scopehal/scopehal.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,10 @@ void InitializePlugins()
349349
if(pent->d_name[0] == '.')
350350
continue;
351351

352+
// Don't load directories
353+
if(pent->d_type == DT_DIR)
354+
continue;
355+
352356
//Try loading it and see if it works.
353357
//(for now, never unload the plugins)
354358
string fname = dir + "/" + pent->d_name;

0 commit comments

Comments
 (0)