Skip to content

Commit a2beee7

Browse files
committed
Catch libraries from subdirectories of PBI lib dirs too
1 parent 5881651 commit a2beee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etc/inc/util.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,7 @@ function array_exclude($needle, $haystack) {
18171817

18181818
function setup_library_paths() {
18191819
$current_library_paths = explode(":", exec("/sbin/ldconfig -r | /usr/bin/grep 'search directories' | /usr/bin/awk '{print $3;}'"));
1820-
$pbi_library_paths = glob("/usr/pbi/*/lib");
1820+
$pbi_library_paths = array_merge(glob("/usr/pbi/*/lib", GLOB_ONLYDIR), glob("/usr/pbi/*/lib/*", GLOB_ONLYDIR));
18211821
foreach ($pbi_library_paths as $pbilib) {
18221822
if (!in_array($pbilib, $current_library_paths))
18231823
exec("/sbin/ldconfig -m {$pbilib}");

0 commit comments

Comments
 (0)