httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rj...@apache.org
Subject svn commit: r814112 - /httpd/mod_fcgid/trunk/modules/fcgid/fcgid_conf.c
Date Sat, 12 Sep 2009 07:54:46 GMT
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)



Mime
View raw message