Blame SOURCES/zip-3.0-currdir.patch

cf1dcd
diff -up zip30/util.c.currdir zip30/util.c
cf1dcd
--- zip30/util.c.currdir	2009-11-16 12:42:17.783961701 +0100
cf1dcd
+++ zip30/util.c	2009-11-16 12:42:58.185960707 +0100
cf1dcd
@@ -493,6 +493,8 @@ int cs;                 /* force case-se
cf1dcd
 /* Compare the sh pattern p with the string s and return true if they match,
cf1dcd
    false if they don't or if there is a syntax error in the pattern. */
cf1dcd
 {
cf1dcd
+  while (s[0] == '.' && s[1] == '/') 
cf1dcd
+    s += 2;                /* strip redundant leading "./" sections */
cf1dcd
   return recmatch(p, s, cs) == 1;
cf1dcd
 }
cf1dcd