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

jmr at macports.org jmr at macports.org
Sat Nov 7 00:38:08 PST 2009


Revision: 60246
          http://trac.macports.org/changeset/60246
Author:   jmr at macports.org
Date:     2009-11-07 00:38:01 -0800 (Sat, 07 Nov 2009)
Log Message:
-----------
Make the filename part of filemap entries case-sensitive (#14123).
This is a fairly risky change, as it is known to have caused deactivation failures in the past. Please test thoroughly.

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

Modified: trunk/base/src/pextlib1.0/filemap.c
===================================================================
--- trunk/base/src/pextlib1.0/filemap.c	2009-11-07 08:25:38 UTC (rev 60245)
+++ trunk/base/src/pextlib1.0/filemap.c	2009-11-07 08:38:01 UTC (rev 60246)
@@ -714,7 +714,7 @@
 		{
 			int theCompResult;
 			theSubnode = *theSubnodeCursor++;
-			theCompResult = strncasecmp(theSubnode->fKeySubpart, beginCursor, partLength);
+			theCompResult = strncmp(theSubnode->fKeySubpart, beginCursor, partLength);
 			if (theCompResult == 0)
 			{
 				/* first partLength bytes are equal, we need to check that fKeySubpart
@@ -854,7 +854,7 @@
 		{
 			int theCompResult;
 			theSubnode = *theSubnodeCursor++;
-			theCompResult = strncasecmp(theSubnode->fKeySubpart, beginCursor, partLength);
+			theCompResult = strncmp(theSubnode->fKeySubpart, beginCursor, partLength);
 			if (theCompResult == 0)
 			{
 				/* first partLength bytes are equal, we need to check that fKeySubpart
@@ -1053,7 +1053,7 @@
 		{
 			int theCompResult;
 			theSubnode = *theSubnodeCursor++;
-			theCompResult = strncasecmp(theSubnode->fKeySubpart, beginCursor, partLength);
+			theCompResult = strncmp(theSubnode->fKeySubpart, beginCursor, partLength);
 			if (theCompResult == 0)
 			{
 				/* first partLength bytes are equal, we need to check that fKeySubpart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091107/691a71da/attachment-0001.html>


More information about the macports-changes mailing list