From 50b460778c0a3e635cc88ca897b3715d8deec879 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 22 Feb 2011 12:22:49 +0000 Subject: [PATCH] Try to make sure we have an absolute path for executables git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32291 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 1 + Source/NSBundle.m | 3 +++ 2 files changed, 4 insertions(+) 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); }