mirror of
https://github.com/apache/httpd.git
synced 2025-08-06 11:06:17 +00:00
Correctly set suexec_enabled when httpd is run by non-root
PR 42175 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@791337 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -272,7 +272,8 @@ unixd_pre_config(apr_pool_t *pconf, apr_pool_t *plog,
|
||||
ap_unixd_config.suexec_enabled = 0;
|
||||
if ((apr_stat(&wrapper, SUEXEC_BIN, APR_FINFO_NORM, ptemp))
|
||||
== APR_SUCCESS) {
|
||||
if ((wrapper.protection & APR_USETID) && wrapper.user == 0) {
|
||||
if ((wrapper.protection & APR_USETID) && wrapper.user == 0
|
||||
&& (access(SUEXEC_BIN, R_OK|X_OK) == 0)) {
|
||||
ap_unixd_config.suexec_enabled = 1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user