[oe-commits] Frans Meulenbroeks : busybox: fix tar problem with filenames that are exactly 100 bytes

GIT User account git at amethyst.openembedded.net
Wed Feb 11 21:59:30 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 5a0e1d473ca7aca5ffefffe9a2ec44ae7a1f35bc
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=5a0e1d473ca7aca5ffefffe9a2ec44ae7a1f35bc

Author: Frans Meulenbroeks <fransmeulenbroeks at gmail.com>
Date:   Wed Feb 11 22:40:21 2009 +0100

busybox: fix tar problem with filenames that are exactly 100 bytes

---

 .../busybox/busybox-1.13.2/get_header_tar.patch    |   11 +++++++++++
 packages/busybox/busybox_1.13.2.bb                 |    3 ++-
 2 files changed, 13 insertions(+), 1 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 0000000..0121cd1
--- /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 */
diff --git a/packages/busybox/busybox_1.13.2.bb b/packages/busybox/busybox_1.13.2.bb
index bff6d27..f00830b 100644
--- a/packages/busybox/busybox_1.13.2.bb
+++ b/packages/busybox/busybox_1.13.2.bb
@@ -1,5 +1,5 @@
 require busybox.inc
-PR = "r12"
+PR = "r13"
 
 SRC_URI = "\
   http://www.busybox.net/downloads/busybox-${PV}.tar.gz \
@@ -12,6 +12,7 @@ SRC_URI = "\
   file://udhcpscript.patch;patch=1 \
   file://udhcpc-fix-nfsroot.patch;patch=1 \
   file://B921600.patch;patch=1 \
+  file://get_header_tar.patch;patch=1 \
   file://find-touchscreen.sh \
   file://busybox-cron \
   file://busybox-httpd \





More information about the Openembedded-commits mailing list