Skip to content

Commit

Permalink
Resolve interpreter's basepath before locating it (#1406)
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Eyberg <[email protected]>
  • Loading branch information
am11 and eyberg authored Jan 16, 2023
1 parent 3a712c7 commit 8e0f29f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lepton/ldd_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ func _getSharedLibs(libs map[string]string, targetRoot string, path string) erro
}
// don't include the terminating NUL in path string
ipath := string(ipathbuf[:len(ipathbuf)-1])
ipath = filepath.Base(ipath)
ipath, absIpath, err := findLib(targetRoot, filepath.Dir(path), libDirs, ipath)
if err != nil {
return errors.WrapPrefix(err, ipath, 0)
Expand Down

0 comments on commit 8e0f29f

Please sign in to comment.