Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 55800 invoked from network); 10 May 2009 10:31:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 May 2009 10:31:59 -0000 Received: (qmail 21210 invoked by uid 500); 10 May 2009 10:31:58 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 21106 invoked by uid 500); 10 May 2009 10:31:58 -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: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 21097 invoked by uid 99); 10 May 2009 10:31:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 May 2009 10:31:58 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 10 May 2009 10:31:56 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 25E9323889D0; Sun, 10 May 2009 10:31:36 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r773322 - /httpd/httpd/trunk/server/core.c Date: Sun, 10 May 2009 10:31:36 -0000 To: cvs@httpd.apache.org From: rpluem@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090510103136.25E9323889D0@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rpluem Date: Sun May 10 10:31:35 2009 New Revision: 773322 URL: http://svn.apache.org/viewvc?rev=773322&view=rev Log: * Fix for the following configuration where the exec command was disabled in /subdir. All CVE-2009-1195 tests still pass with this patch. # only two containers in the config Options Includes AllowOverride None # with this container, mod_cgi/mod_cgid complains about exec being off # without it, exec cmd= works as expected SetEnv foo bar Modified: httpd/httpd/trunk/server/core.c Modified: httpd/httpd/trunk/server/core.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core.c?rev=773322&r1=773321&r2=773322&view=diff ============================================================================== --- httpd/httpd/trunk/server/core.c (original) +++ httpd/httpd/trunk/server/core.c Sun May 10 10:31:35 2009 @@ -242,8 +242,9 @@ /* if Includes was enabled without exec in the new config, but * was enabled with exec in the base, then disable exec in the * resulting options. */ - if ((base->opts & OPT_INC_WITH_EXEC) - && (new->opts & OPT_INC_WITH_EXEC) == 0) { + if ((base->opts & OPT_INC_WITH_EXEC) + && (new->opts & OPT_INC_WITH_EXEC) == 0 + && (new->opts & OPT_INCLUDES)) { conf->opts &= ~OPT_INC_WITH_EXEC; } }