From 73c6ea589faaa90549e0ae35932e5820f08ac3e4 Mon Sep 17 00:00:00 2001 From: "Allan K. Edwards" Date: Fri, 15 Dec 2000 15:02:38 +0000 Subject: [PATCH] Get exe CGI's working again on Windows git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87359 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/generators/mod_cgi.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index 5ed04cce50..3c8515f62b 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0b1 + *) Get exe CGI's working again on Windows. + [Allan Edwards] + *) Get mod_cgid and mod_rewrite to work as DSOs by changing the way they keep track of whether or not their post config hook has been called before. Instead of a static variable (which is replaced when diff --git a/modules/generators/mod_cgi.c b/modules/generators/mod_cgi.c index f5660c94ec..b161ff61d5 100644 --- a/modules/generators/mod_cgi.c +++ b/modules/generators/mod_cgi.c @@ -477,7 +477,7 @@ static apr_status_t build_command_line(const char **cmd, request_rec *r, /* * Build the command string to pass to ap_os_create_privileged_process() */ - quoted_filename = apr_pstrcat(p, "\"", argv0, "\"", NULL); + quoted_filename = apr_pstrcat(p, "\"", r->filename, "\"", NULL); if (interpreter && *interpreter) { if (arguments && *arguments) *cmd = apr_pstrcat(p, interpreter, " ", quoted_filename, " ", @@ -492,7 +492,7 @@ static apr_status_t build_command_line(const char **cmd, request_rec *r, *cmd = apr_pstrcat(p, quoted_filename, NULL); } #else - *cmd = argv0; + *cmd = apr_pstrcat(p, r->filename, NULL); #endif return APR_SUCCESS; } -- 2.50.1