slackware-current/source/a/infozip/zip-patches/zip-3.0-currdir.patch
Patrick J Volkerding d26b7f6e82 Fri Mar 1 23:44:12 UTC 2019
a/eudev-3.2.7-x86_64-2.txz:  Rebuilt.
  Don't require kvm group.
2019-03-02 08:59:47 +01:00

12 lines
523 B
Diff

diff -up zip30/util.c.currdir zip30/util.c
--- zip30/util.c.currdir 2009-11-16 12:42:17.783961701 +0100
+++ zip30/util.c 2009-11-16 12:42:58.185960707 +0100
@@ -493,6 +493,8 @@ int cs; /* force case-se
/* 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(p, s, cs) == 1;
}