httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <...@dotat.at>
Subject Re: cvs commit: apache-2.0 STATUS
Date Thu, 13 Apr 2000 16:47:42 GMT
Jim Jagielski <jim@jaguNET.com> wrote:
>fanf@locus.apache.org wrote:
>> 
>>   +    * Mass vhosting version of suEXEC.
>
>But certainly suEXEC already does that.

It doesn't work with mass vhosting. At Demon we use our own ancient
and slightly grotty wrapper which gets the target UID and GID from the
CGI that is to be run, coupled with the patch below. I want to do a
clean version of it.

Tony.
-- 
f.a.n.finch    fanf@demon.net    dot@dotat.at
163 comedy that almost might have been


--- apache-1.3/src/main/util_script.c	Fri Mar  3 05:59:11 2000
+++ apache-1.3/src/main/util_script.c	Sun Oct  3 23:25:45 1999
@@ -1135,13 +1235,23 @@
 	}
 
 	else if ((!r->args) || (!r->args[0]) || strchr(r->args, '=')) {
+#ifdef CGI_WRAPPER
+	    execle(CGI_WRAPPER, r->filename, NULL, env);
+#else
 	    execle(r->filename, argv0, NULL, env);
+#endif
 	}
 
 	else {
+#ifdef CGI_WRAPPER
+	    execve(CGI_WRAPPER,
+		   create_argv(r->pool, NULL, NULL, NULL, r->filename, r->args),
+		   env);
+#else
	    execve(r->filename,
		   create_argv(r->pool, NULL, NULL, NULL, argv0, r->args),
		   env);
+#endif
 	}
     }
     return (pid);

Mime
View raw message