summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2004-07-20 03:25:21 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2004-07-20 03:25:21 +0000
commitfc4614025a6601cf5b1b7d15195878f967088981 (patch)
treed2e85188cdd6d6ccbe31e0f21974711fdf5eef65
parent71a51ff53c5c821b76b805cfc2f551d98e457217 (diff)
downloadlibapr-fc4614025a6601cf5b1b7d15195878f967088981.tar.gz
apr_proc_create() on Unix: Remove unnecessary check for read
access to the working directory of the child process. PR: 30137 Submitted by: Jeremy Chadwick <apache jdc.parodius.com> Reviewed by: jorton, trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/APR_0_9_BRANCH@65284 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CHANGES5
-rw-r--r--threadproc/unix/proc.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0379b2438..f08020a7d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,9 @@
Changes with APR 0.9.5
+
+ *) apr_proc_create() on Unix: Remove unnecessary check for read
+ access to the working directory of the child process.
+ PR 30137. [Jeremy Chadwick <apache jdc.parodius.com>]
+
*) Win32: Fix bug tracking the file pointer on a file opened for
overlapped/APR_XTHREAD io. [Bill Stoddard]
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c
index f50113aa7..19b8e1fe6 100644
--- a/threadproc/unix/proc.c
+++ b/threadproc/unix/proc.c
@@ -285,7 +285,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
if (attr->errchk) {
if (attr->currdir) {
- if (access(attr->currdir, R_OK|X_OK) == -1) {
+ if (access(attr->currdir, X_OK) == -1) {
/* chdir() in child wouldn't have worked */
return errno;
}