From 90fb38e82f1484bddbed632c734ada22de6321d7 Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 2 Sep 1999 07:43:08 +0000 Subject: [PATCH] Fix to pass full path of executable to child process. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4793 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 5 +++++ Source/NSTask.m | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d7853b7f..096130e59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Thu Sep 2 9:03:00 1999 Richard Frith-Macdonald + + * Source/NSTask.m: exec process with argv[0] set to full path of + the executable rather than just the program name. + Tue Aug 31 15:47:00 1999 Richard Frith-Macdonald * Source/NSTimer.m: Set minimum timeout to 0.01s rather than 1.0s. diff --git a/Source/NSTask.m b/Source/NSTask.m index 7366d7b57..d033ea6dd 100644 --- a/Source/NSTask.m +++ b/Source/NSTask.m @@ -434,7 +434,7 @@ extern char *objc_find_executable(const char *name); lpath = [lpath stringByStandardizingPath]; executable = [lpath cString]; - args[0] = [prog cString]; + args[0] = executable; for (i = 0; i < ac; i++) {