diff options
Diffstat (limited to 'src/main/extractor_plugpath.c')
-rw-r--r-- | src/main/extractor_plugpath.c | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/main/extractor_plugpath.c b/src/main/extractor_plugpath.c index 17859c1..c8abff9 100644 --- a/src/main/extractor_plugpath.c +++ b/src/main/extractor_plugpath.c | |||
@@ -501,7 +501,6 @@ find_plugin_in_path (void *cls, | |||
501 | struct SearchContext *sc = cls; | 501 | struct SearchContext *sc = cls; |
502 | DIR *dir; | 502 | DIR *dir; |
503 | struct dirent *ent; | 503 | struct dirent *ent; |
504 | const char *la; | ||
505 | const char *sym_name; | 504 | const char *sym_name; |
506 | char *sym; | 505 | char *sym; |
507 | char *dot; | 506 | char *dot; |
@@ -514,12 +513,8 @@ find_plugin_in_path (void *cls, | |||
514 | { | 513 | { |
515 | if ('.' == ent->d_name[0]) | 514 | if ('.' == ent->d_name[0]) |
516 | continue; | 515 | continue; |
517 | if ( ( (NULL != (la = strstr (ent->d_name, ".la"))) && | 516 | if ( (NULL == strstr (ent->d_name, ".so")) && |
518 | ('\0' == la[3]) ) || | 517 | (NULL == strstr (ent->d_name, ".dll")) ) |
519 | ( (NULL != (la = strstr (ent->d_name, ".ver"))) && | ||
520 | (la[4] == '\0') ) || | ||
521 | ( (NULL != (la = strstr (ent->d_name, ".a"))) && | ||
522 | (la[2] == '\0') ) ) | ||
523 | continue; /* only load '.so' and '.dll' */ | 518 | continue; /* only load '.so' and '.dll' */ |
524 | if (NULL == (sym_name = strrchr (ent->d_name, '_'))) | 519 | if (NULL == (sym_name = strrchr (ent->d_name, '_'))) |
525 | continue; | 520 | continue; |
@@ -592,7 +587,6 @@ load_plugins_from_dir (void *cls, | |||
592 | struct DefaultLoaderContext *dlc = cls; | 587 | struct DefaultLoaderContext *dlc = cls; |
593 | DIR *dir; | 588 | DIR *dir; |
594 | struct dirent *ent; | 589 | struct dirent *ent; |
595 | const char *la; | ||
596 | const char *sym_name; | 590 | const char *sym_name; |
597 | char *sym; | 591 | char *sym; |
598 | char *dot; | 592 | char *dot; |
@@ -603,14 +597,9 @@ load_plugins_from_dir (void *cls, | |||
603 | { | 597 | { |
604 | if (ent->d_name[0] == '.') | 598 | if (ent->d_name[0] == '.') |
605 | continue; | 599 | continue; |
606 | if ( ( (NULL != (la = strstr (ent->d_name, ".la"))) && | 600 | if ( (NULL == strstr (ent->d_name, ".so")) && |
607 | (la[3] == '\0') ) || | 601 | (NULL == strstr (ent->d_name, ".dll")) ) |
608 | ( (NULL != (la = strstr (ent->d_name, ".ver"))) && | ||
609 | (la[4] == '\0') ) || | ||
610 | ( (NULL != (la = strstr (ent->d_name, ".a"))) && | ||
611 | (la[2] == '\0')) ) | ||
612 | continue; /* only load '.so' and '.dll' */ | 602 | continue; /* only load '.so' and '.dll' */ |
613 | |||
614 | if (NULL == (sym_name = strrchr (ent->d_name, '_'))) | 603 | if (NULL == (sym_name = strrchr (ent->d_name, '_'))) |
615 | continue; | 604 | continue; |
616 | sym_name++; | 605 | sym_name++; |
@@ -622,8 +611,6 @@ load_plugins_from_dir (void *cls, | |||
622 | } | 611 | } |
623 | if (NULL != (dot = strchr (sym, '.'))) | 612 | if (NULL != (dot = strchr (sym, '.'))) |
624 | *dot = '\0'; | 613 | *dot = '\0'; |
625 | LOG ("Adding default plugin `%s'\n", | ||
626 | sym); | ||
627 | dlc->res = EXTRACTOR_plugin_add (dlc->res, | 614 | dlc->res = EXTRACTOR_plugin_add (dlc->res, |
628 | sym, | 615 | sym, |
629 | NULL, | 616 | NULL, |