Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 52236 invoked from network); 21 Jun 2004 18:31:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Jun 2004 18:31:46 -0000 Received: (qmail 70181 invoked by uid 500); 21 Jun 2004 18:31:58 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 70044 invoked by uid 500); 21 Jun 2004 18:31:56 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 69607 invoked by uid 500); 21 Jun 2004 18:31:50 -0000 Delivered-To: apmail-apache-1.3-cvs@apache.org Received: (qmail 69437 invoked by uid 99); 21 Jun 2004 18:31:46 -0000 Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 21 Jun 2004 11:31:46 -0700 Received: (qmail 52073 invoked by uid 1134); 21 Jun 2004 18:31:28 -0000 Date: 21 Jun 2004 18:31:28 -0000 Message-ID: <20040621183128.52072.qmail@minotaur.apache.org> From: wrowe@apache.org To: apache-1.3-cvs@apache.org Subject: cvs commit: apache-1.3/src/modules/standard mod_rewrite.c X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N wrowe 2004/06/21 11:31:28 Modified: src/modules/standard mod_rewrite.c Log: Fix the rewrite_map program invocation for Win32. Someone borrowed the pass-environ[][] construct from unix, but CreateProcess is much happier to copy the current environment when passed NULL for the flat environment strings argument (properly formatted, that argument must be null or a string in the format "var1=val\0var2=val\0\0".) The only other CreateProcess call which does *not* pass NULL for the envvars arg, in util_script.c for cgi, does the right thing in constructing that argument. Submitted by: Philip Gladstone [pgladstone cisco.com] Revision Changes Path 1.194 +2 -2 apache-1.3/src/modules/standard/mod_rewrite.c Index: mod_rewrite.c =================================================================== RCS file: /home/cvs/apache-1.3/src/modules/standard/mod_rewrite.c,v retrieving revision 1.193 retrieving revision 1.194 diff -u -r1.193 -r1.194 --- mod_rewrite.c 20 Feb 2004 20:38:27 -0000 1.193 +++ mod_rewrite.c 21 Jun 2004 18:31:27 -0000 1.194 @@ -3573,8 +3573,8 @@ si.hStdOutput = pinfo->hPipeOutputWrite; si.hStdError = pinfo->hPipeErrorWrite; - if (CreateProcess(NULL, pCommand, NULL, NULL, TRUE, 0, - environ, NULL, &si, &pi)) { + if (CreateProcess(NULL, pCommand, NULL, NULL, TRUE, 0, + NULL, NULL, &si, &pi)) { CloseHandle(pi.hProcess); CloseHandle(pi.hThread); child_pid = pi.dwProcessId;