summaryrefslogtreecommitdiff
path: root/threadproc
diff options
context:
space:
mode:
authorjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-10-10 15:40:31 +0000
committerjorton <jorton@13f79535-47bb-0310-9956-ffa450edef68>2006-10-10 15:40:31 +0000
commit74cde7d686fcd34a36afb0544bb3b465ba93403e (patch)
tree7d64ef3d63dd2e0ddcaac1ae888a4046a4f97722 /threadproc
parentd054cfee77755c97ebd659fac43c4d1603dc3438 (diff)
downloadlibapr-74cde7d686fcd34a36afb0544bb3b465ba93403e.tar.gz
* threadprox/unix/proc.c (apr_proc_create): Relax the tests to allow
executable-but-unreadable programs to be executed even if the errchk mode is active. PR: 32498 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@454787 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc')
-rw-r--r--threadproc/unix/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/threadproc/unix/proc.c b/threadproc/unix/proc.c
index bf743527c..0b9c8b97b 100644
--- a/threadproc/unix/proc.c
+++ b/threadproc/unix/proc.c
@@ -355,7 +355,7 @@ APR_DECLARE(apr_status_t) apr_proc_create(apr_proc_t *new,
* caller can choose to pass full path for other
* values of cmdtype
*/
- if (access(progname, R_OK|X_OK) == -1) {
+ if (access(progname, X_OK) == -1) {
/* exec*() in child wouldn't have worked */
return errno;
}