Revision
79772
Author
afb@macports.org
Date
2011-06-25 04:41:08 -0700 (Sat, 25 Jun 2011)

Log Message

fix tails with trailing slash, on other platforms

Modified Paths

Diff

Modified: trunk/base/src/pextlib1.0/fs-traverse.c (79771 => 79772)


--- trunk/base/src/pextlib1.0/fs-traverse.c	2011-06-25 11:40:35 UTC (rev 79771)
+++ trunk/base/src/pextlib1.0/fs-traverse.c	2011-06-25 11:41:08 UTC (rev 79772)
@@ -146,6 +146,8 @@
             xpath = ".";
         } else if (*(xpath + tlen) == '/') {
             xpath += tlen + 1;
+        } else if (*(target + tlen - 1) == '/') {
+            xpath += tlen;
         }
     }