diff options
Diffstat (limited to 'rust/src')
| -rw-r--r-- | rust/src/headless.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/src/headless.rs b/rust/src/headless.rs index 1520fc58..e4024d8e 100644 --- a/rust/src/headless.rs +++ b/rust/src/headless.rs @@ -59,6 +59,11 @@ fn binja_path() -> PathBuf { let path = CStr::from_ptr(info.dli_fname); let path = OsStr::from_bytes(path.to_bytes()); let mut path = PathBuf::from(path); + while path.is_symlink() { + path = path + .read_link() + .expect("Failed to find libbinaryninjacore path!"); + } path.pop(); path |
