summaryrefslogtreecommitdiff
path: root/packages/busybox/busybox-1.13.2
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-02-11 22:40:21 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-02-11 22:40:21 +0100
commit5a0e1d473ca7aca5ffefffe9a2ec44ae7a1f35bc (patch)
treebffb9fff9c4e5da35ecef9484de291733c2d3455 /packages/busybox/busybox-1.13.2
parent4e1b79d2d824ae7e0204251a09e852c24045c54a (diff)
busybox: fix tar problem with filenames that are exactly 100 bytes
Diffstat (limited to 'packages/busybox/busybox-1.13.2')
-rw-r--r--packages/busybox/busybox-1.13.2/get_header_tar.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/packages/busybox/busybox-1.13.2/get_header_tar.patch b/packages/busybox/busybox-1.13.2/get_header_tar.patch
new file mode 100644
index 0000000000..0121cd1b61
--- /dev/null
+++ b/packages/busybox/busybox-1.13.2/get_header_tar.patch
@@ -0,0 +1,11 @@
+--- busybox-1.13.2/archival/libunarchive/get_header_tar.c.orig 2008-11-09 18:28:02.000000000 +0100
++++ busybox-1.13.2/archival/libunarchive/get_header_tar.c 2009-02-11 22:34:52.000000000 +0100
+@@ -252,6 +252,8 @@
+ file_header->name = concat_path_file(tar.prefix, tar.name);
+ } else
+ file_header->name = xstrdup(tar.name);
++ if (strlen(file_header->name) > 100)
++ file_header->name[100] = 0;
+ }
+
+ /* Set bits 12-15 of the files mode */