mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
GP-5825: Fixing issue with prior commit
This commit is contained in:
parent
b5bfcc0fbf
commit
f57b520837
1 changed files with 15 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue