aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/gtar/files/patch-src_names.c
diff options
context:
space:
mode:
Diffstat (limited to 'archivers/gtar/files/patch-src_names.c')
-rw-r--r--archivers/gtar/files/patch-src_names.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/archivers/gtar/files/patch-src_names.c b/archivers/gtar/files/patch-src_names.c
new file mode 100644
index 000000000000..a49b375cb9e3
--- /dev/null
+++ b/archivers/gtar/files/patch-src_names.c
@@ -0,0 +1,18 @@
+
+$FreeBSD$
+
+--- src/names.c.orig
++++ src/names.c
+@@ -1012,11 +1012,10 @@
+ if (p[0] == '.' && p[1] == '.' && (ISSLASH (p[2]) || !p[2]))
+ return 1;
+
+- do
++ while (! ISSLASH (*p))
+ {
+ if (! *p++)
+ return 0;
+ }
+- while (! ISSLASH (*p));
+ }
+ }