summaryrefslogtreecommitdiff
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
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.
-rw-r--r--ChangeLog7
-rw-r--r--native/jni/native-lib/cpproc.c3
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 <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.
+
2009-02-03 Andrew John Hughes <ahughes@redhat.com>
* 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