summaryrefslogtreecommitdiffstats
path: root/httpd-2.2.9-suenable.patch
blob: 22276326c0784b597c9853926256834a99be9303 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- httpd-2.2.9/os/unix/unixd.c.suenable
+++ httpd-2.2.9/os/unix/unixd.c
@@ -215,7 +215,7 @@ AP_DECLARE(void) unixd_pre_config(apr_po
     }
 
     if ((wrapper.protection & APR_USETID) && wrapper.user == 0) {
-        unixd_config.suexec_enabled = 1;
+        unixd_config.suexec_enabled = access(SUEXEC_BIN, R_OK|X_OK) == 0;
     }
 }