Skip to content

Commit 85cf230

Browse files
committed
fix: hide library files which ldconfig shows up but don't exist
1 parent 1fbc2ab commit 85cf230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dbconnection.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1911,7 +1911,7 @@ function TConnectionParameters.GetLibraries: TStringList;
19111911
Process.RunCommandInDir('', '/sbin/ldconfig', ['-p'], LibMapOutput);
19121912
LibMapLines := Explode(sLineBreak, LibMapOutput);
19131913
for LibMap in LibMapLines do begin
1914-
if rx.Exec(LibMap) then begin
1914+
if rx.Exec(LibMap) and FileExists(rx.Match[2]) then begin
19151915
FoundLibs.Add(rx.Match[2]);
19161916
end;
19171917
end;

0 commit comments

Comments
 (0)