BPathFinder: Fix resolvable expression support
We need to use the package's .self symlink, since that does point to the package's installation location. The containing directory lives in /boot/system/package-links and would therefore always resolve to the system installation location.
This commit is contained in:
parent
556e8b250a
commit
676481a5f6
@ -80,7 +80,7 @@ BPathFinder::SetTo(const BResolvableExpression& expression,
|
||||
return fInitStatus;
|
||||
|
||||
BString packageLinksPath;
|
||||
packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s",
|
||||
packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s/.self",
|
||||
versionedPackageName.String());
|
||||
if (packageLinksPath.IsEmpty())
|
||||
return fInitStatus = B_NO_MEMORY;
|
||||
|
Loading…
Reference in New Issue
Block a user