mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-01-10 06:27:59 -05:00
GP-5825: Fixing issue with prior commit
This commit is contained in:
@@ -1124,27 +1124,29 @@ public abstract class AbstractLibrarySupportLoader extends AbstractProgramLoader
|
||||
if (fsService.isLocal(fsrl)) {
|
||||
try {
|
||||
// It might be a container file that we want to look inside of, so probe
|
||||
FileSystemRef fileRef =
|
||||
fsService.probeFileForFilesystem(fsrl, monitor, null);
|
||||
if (fileRef != null) {
|
||||
result.add(new LibrarySearchPath(fileRef, null));
|
||||
if (fsService.getLocalFS().getLocalFile(fsrl).isFile()) {
|
||||
FileSystemRef fileRef =
|
||||
fsService.probeFileForFilesystem(fsrl, monitor, null);
|
||||
if (fileRef != null) {
|
||||
result.add(new LibrarySearchPath(fileRef, null));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.appendMsg(e.getMessage());
|
||||
}
|
||||
}
|
||||
else {
|
||||
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
|
||||
if (fileRef != null) {
|
||||
result.add(
|
||||
new LibrarySearchPath(fileRef.fsRef.dup(), fileRef.file.getPath()));
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.appendMsg(e.getMessage());
|
||||
|
||||
try (RefdFile fileRef = fsService.getRefdFile(fsrl, monitor)) {
|
||||
if (fileRef != null) {
|
||||
result.add(
|
||||
new LibrarySearchPath(fileRef.fsRef.dup(), fileRef.file.getPath()));
|
||||
}
|
||||
}
|
||||
catch (IOException e) {
|
||||
log.appendMsg(e.getMessage());
|
||||
}
|
||||
}
|
||||
success = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user