You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2004/12/02 18:06:52 UTC
DO NOT REPLY [Bug 32498] New: -
R_OK required by exec*() checks
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32498>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=32498
Summary: R_OK required by exec*() checks
Product: APR
Version: HEAD
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: APR
AssignedTo: bugs@httpd.apache.org
ReportedBy: david@edeca.net
In threadproc/unix/proc.c, checks require the flag R_OK to be set for exec*() to
succeed. This is the case when they are interpreted scripts but not for
binaries. This has been causing trouble on a machine with Apache2 and suPHP, as
the suPHP binary is set to -rws--x--x. This has been discussed in a thread on
the suPHP mailing lists at
http://lists.marsching.biz/pipermail/suphp/2004-December/000599.html.
If the R_OK flag is removed from "if (access(progname, R_OK|X_OK) == -1) {", the
suPHP binary is run successfully. However, this would likely break
compatibility with executable scripts as they do require +r permissions in order
to run.
This bug is very similar to
http://issues.apache.org/bugzilla/show_bug.cgi?id=30137, but differs in that
there are cases where R_OK is needed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org