Browse Source

allow SetEnv to set PATH variable; use suexec.log instead of default suexec_log

Ralf S. Engelschall 23 years ago
parent
commit
b61ecdda31
2 changed files with 11 additions and 0 deletions
  1. 10 0
      apache/apache.patch
  2. 1 0
      apache/apache.spec

+ 10 - 0
apache/apache.patch

@@ -65,3 +65,13 @@
  	}
  	else if (p->kill_how == kill_always) {
  	    kill(p->pid, SIGKILL);
+--- apache_1.3.28/src/main/util_script.c.orig	Mon Jul 28 17:13:56 2003
++++ apache_1.3.28/src/main/util_script.c	Tue Jul 29 15:55:27 2003
+@@ -246,6 +246,7 @@
+ 	}
+     }
+ 
++    if (!(env_path = ap_pstrdup(r->pool, ap_table_get(r->subprocess_env, "PATH"))))
+     if (!(env_path = ap_pstrdup(r->pool, getenv("PATH")))) {
+ 	env_path = DEFAULT_PATH;
+     }

+ 1 - 0
apache/apache.spec

@@ -798,6 +798,7 @@ AutoReqProv:  no
           --enable-suexec \
           --suexec-caller=%{with_suexec_caller} \
           --suexec-userdir=%{with_suexec_userdir} \
+          --suexec-logfile=%{l_prefix}/var/apache/log/suexec.log \
 %endif
           --enable-module=most \
           --with-perl=%{l_prefix}/bin/perl \