From 676481a5f679fa81b52d2d2c1628b319c09507be Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 21 Nov 2013 13:45:37 +0100 Subject: [PATCH] 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. --- src/kits/package/PathFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/package/PathFinder.cpp b/src/kits/package/PathFinder.cpp index 475f9b3f7d..d6c755511a 100644 --- a/src/kits/package/PathFinder.cpp +++ b/src/kits/package/PathFinder.cpp @@ -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;