summaryrefslogtreecommitdiff
path: root/opt/zip/zip-3.0-currdir.patch
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /opt/zip/zip-3.0-currdir.patch
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'opt/zip/zip-3.0-currdir.patch')
-rw-r--r--opt/zip/zip-3.0-currdir.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/opt/zip/zip-3.0-currdir.patch b/opt/zip/zip-3.0-currdir.patch
new file mode 100644
index 0000000..40da32e
--- /dev/null
+++ b/opt/zip/zip-3.0-currdir.patch
@@ -0,0 +1,12 @@
+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;
+ }
+