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;
|
return fInitStatus;
|
||||||
|
|
||||||
BString packageLinksPath;
|
BString packageLinksPath;
|
||||||
packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s",
|
packageLinksPath.SetToFormat(kSystemPackageLinksDirectory "/%s/.self",
|
||||||
versionedPackageName.String());
|
versionedPackageName.String());
|
||||||
if (packageLinksPath.IsEmpty())
|
if (packageLinksPath.IsEmpty())
|
||||||
return fInitStatus = B_NO_MEMORY;
|
return fInitStatus = B_NO_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user