]> granicus.if.org Git - apache/commitdiff
Need to pass in just the directory, not including the filename. Note that CGI
authorBill Stoddard <stoddard@apache.org>
Tue, 12 Oct 1999 19:19:29 +0000 (19:19 +0000)
committerBill Stoddard <stoddard@apache.org>
Tue, 12 Oct 1999 19:19:29 +0000 (19:19 +0000)
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

modules/generators/mod_cgi.c

index b4f7cc2bd46620b489eedf3749a03eb550322ff4..34b7770701417f725120982caa3048d5447f07eb 100644 (file)
@@ -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,