summaryrefslogtreecommitdiff
path: root/native
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2009-02-04 14:17:15 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2009-02-04 14:17:15 +0000
commitcdcb8a7a586f31d2b76d011ba5895f6a9ea2ae42 (patch)
tree4e3fcd3150e1275b2ea27994f9f752dba077e1a3 /native
parent6101678b0c243b02cfcbbf9f109d89489069f317 (diff)
downloadclasspath-cdcb8a7a586f31d2b76d011ba5895f6a9ea2ae42.tar.gz
Revert the return on chdir == -1.
2009-02-04 Andrew John Hughes <ahughes@redhat.com> * 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.
Diffstat (limited to 'native')
-rw-r--r--native/jni/native-lib/cpproc.c3
1 files changed, 1 insertions, 2 deletions
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