diff --git a/ChangeLog b/ChangeLog index 7d522e65e..b6b4cd75f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2011-02-22 Richard Frith-Macdonald + * Source/NSBundle.m: Make private executable path be an absolute path. * Source/NSDateFormatter.m: * Source/NSLocale.m: * Source/NSNumberFormatter.m: diff --git a/Source/NSBundle.m b/Source/NSBundle.m index a83307a6a..a3ce4dff5 100644 --- a/Source/NSBundle.m +++ b/Source/NSBundle.m @@ -269,6 +269,9 @@ GSPrivateExecutablePath() { executablePath = [[[NSProcessInfo processInfo] arguments] objectAtIndex: 0]; + } + if (NO == [executablePath isAbsolutePath]) + { executablePath = AbsolutePathOfExecutable(executablePath, YES); }