summaryrefslogtreecommitdiff
path: root/packaging/zip-2.3-currdir.patch
blob: 1ff00f6bee71312d56618fc003d868fc154c3ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- zip-2.3/util.c.pom	1999-11-07 11:29:38.000000000 +0100
+++ zip-2.3/util.c	2005-01-17 13:46:26.165396792 +0100
@@ -190,6 +190,8 @@
 /* Compare the sh pattern p with the string s and return true if they match,
    false if they don't or if there is a syntax error in the pattern. */
 {
+  while (s[0] == '.' && s[1] == '/') 
+     s += 2;                /* strip redundant leading "./" sections */
   return recmatch((ZCONST uch *) p, (ZCONST uch *) s, cs) == 1;
 }