Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 810 invoked from network); 12 Sep 2009 07:55:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Sep 2009 07:55:09 -0000 Received: (qmail 92544 invoked by uid 500); 12 Sep 2009 07:55:09 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 92472 invoked by uid 500); 12 Sep 2009 07:55:08 -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 92463 invoked by uid 99); 12 Sep 2009 07:55:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Sep 2009 07:55:08 +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; Sat, 12 Sep 2009 07:55:06 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id AD76C238889C; Sat, 12 Sep 2009 07:54:46 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r814112 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c Date: Sat, 12 Sep 2009 07:54:46 -0000 To: cvs@httpd.apache.org From: rjung@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090912075446.AD76C238889C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rjung Date: Sat Sep 12 07:54:46 2009 New Revision: 814112 URL: http://svn.apache.org/viewvc?rev=814112&view=rev Log: - Use an existing define in all places - Match "virtual" flag case insensitive Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c Modified: httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c URL: http://svn.apache.org/viewvc/httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c?rev=814112&r1=814111&r2=814112&view=diff ============================================================================== --- httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c (original) +++ httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c Sat Sep 12 07:54:46 2009 @@ -774,12 +774,12 @@ if (wrapperpath == NULL) return "Invalid wrapper file"; - if (virtual == NULL && extension != NULL && !strcmp(extension, WRAPPER_FLAG_VIRTUAL)) { - virtual = "virtual"; + if (virtual == NULL && extension != NULL && !strcasecmp(extension, WRAPPER_FLAG_VIRTUAL)) { + virtual = WRAPPER_FLAG_VIRTUAL; extension = NULL; } - if (virtual != NULL && strcmp(virtual, WRAPPER_FLAG_VIRTUAL)) { + if (virtual != NULL && strcasecmp(virtual, WRAPPER_FLAG_VIRTUAL)) { return "Invalid wrapper flag"; } @@ -836,7 +836,7 @@ wrapper->inode = finfo.inode; wrapper->deviceid = finfo.device; wrapper->share_group_id = *wrapper_id; - wrapper->virtual = (virtual != NULL && !strcmp(virtual, WRAPPER_FLAG_VIRTUAL)); + wrapper->virtual = (virtual != NULL && !strcasecmp(virtual, WRAPPER_FLAG_VIRTUAL)); (*wrapper_id)++; if (extension == NULL)