From cdcb8a7a586f31d2b76d011ba5895f6a9ea2ae42 Mon Sep 17 00:00:00 2001 From: Andrew John Hughes Date: Wed, 4 Feb 2009 14:17:15 +0000 Subject: Revert the return on chdir == -1. 2009-02-04 Andrew John Hughes * native/jni/native-lib/cpproc.c: (cpproc_forkAndExec): Don't return on a -1 result from chdir as this may be valid in some cases. A better fix is needed. --- ChangeLog | 7 +++++++ native/jni/native-lib/cpproc.c | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13b0826f5..e79d81124 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2009-02-04 Andrew John Hughes + + * native/jni/native-lib/cpproc.c: + (cpproc_forkAndExec): Don't return on a -1 + result from chdir as this may be valid in + some cases. A better fix is needed. + 2009-02-03 Andrew John Hughes * native/jni/native-lib/cpproc.c: diff --git a/native/jni/native-lib/cpproc.c b/native/jni/native-lib/cpproc.c index e3b69680f..0c80703d6 100644 --- a/native/jni/native-lib/cpproc.c +++ b/native/jni/native-lib/cpproc.c @@ -87,8 +87,7 @@ int cpproc_forkAndExec (char * const *commandLine, char * const * newEnviron, close_all_fds(local_fds, pipe_count * 2); i = chdir(wd); - if (i == -1) - return errno; + /* FIXME: Handle the return value */ if (newEnviron == NULL) execvp(commandLine[0], commandLine); else -- cgit v1.2.1