From: Bill Stoddard Date: Tue, 12 Oct 1999 19:19:29 +0000 (+0000) Subject: Need to pass in just the directory, not including the filename. Note that CGI X-Git-Tag: 1.3.10~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c24df1204a3ed147a8ea54e5aae7ece82e7d31f7;p=apache Need to pass in just the directory, not including the filename. Note that CGI arguments are being completely ignored. suexec needs to be handled, the CGI arguments need to be canonicalized (e.g., quote args containing spaces, etc.) and ScriptInterpreterSource needs reimplementing. Whew! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83978 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index b4f7cc2bd4..34b7770701 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -353,7 +353,7 @@ static ap_status_t cgi_child(struct cgi_child_stuff *child_stuff, script_in ? 1 : 0, script_out ? 1 : 0, script_err ? 1 : 0) != APR_SUCCESS) || - (ap_setprocattr_dir(procattr, r->filename) != APR_SUCCESS) || + (ap_setprocattr_dir(procattr, ap_make_dirstr_parent(r->pool, r->filename)) != APR_SUCCESS) || (ap_setprocattr_cmdtype(procattr, APR_PROGRAM) != APR_SUCCESS)) { /* Something bad happened, tell the world. */ ap_log_rerror(APLOG_MARK, APLOG_ERR, r,