[37621] trunk/base/src/pextlib1.0/filemap.c

jmr at macports.org jmr at macports.org
Sun Jun 15 13:32:59 PDT 2008


Revision: 37621
          http://trac.macosforge.org/projects/macports/changeset/37621
Author:   jmr at macports.org
Date:     2008-06-15 13:32:58 -0700 (Sun, 15 Jun 2008)

Log Message:
-----------
Treat port names case-insensitively in filemap. (#11759)

Modified Paths:
--------------
    trunk/base/src/pextlib1.0/filemap.c

Modified: trunk/base/src/pextlib1.0/filemap.c
===================================================================
--- trunk/base/src/pextlib1.0/filemap.c	2008-06-15 19:59:08 UTC (rev 37620)
+++ trunk/base/src/pextlib1.0/filemap.c	2008-06-15 20:32:58 UTC (rev 37621)
@@ -1003,7 +1003,7 @@
 	if (inRoot->fNodeType == kLeaf)
 	{
 		/* it's a leaf. Does the value match? */
-		if (strcmp(((SLeaf*) inRoot)->fValue, inValue) == 0)
+		if (strcasecmp(((SLeaf*) inRoot)->fValue, inValue) == 0)
 		{
 			/* It matches. */
 			char* thePath = ckalloc(inSubpathLen + NAME_MAX + 1);

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080615/73d18239/attachment.htm 


More information about the macports-changes mailing list