aboutsummaryrefslogtreecommitdiffstats
path: root/packages/opkg/files
diff options
context:
space:
mode:
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-02-11 22:32:06 +0100
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>2009-02-11 22:32:06 +0100
commit4e1b79d2d824ae7e0204251a09e852c24045c54a (patch)
tree42d9d5f69db7836f0982397c5ccf9e131c62e77d /packages/opkg/files
parent2f56f3b3b0e961647c2c3459752028e065ad6ca7 (diff)
downloadopenembedded-4e1b79d2d824ae7e0204251a09e852c24045c54a.tar.gz
opkg: fix bug that occured with file names of exactly 100 chars in the tar file
Diffstat (limited to 'packages/opkg/files')
-rw-r--r--packages/opkg/files/opkg_unarchive.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/opkg/files/opkg_unarchive.patch b/packages/opkg/files/opkg_unarchive.patch
new file mode 100644
index 0000000000..9e5ccfb714
--- /dev/null
+++ b/packages/opkg/files/opkg_unarchive.patch
@@ -0,0 +1,13 @@
+--- trunk/libbb/unarchive.c.orig 2009-02-11 22:14:58.000000000 +0100
++++ trunk/libbb/unarchive.c 2009-02-11 22:15:07.000000000 +0100
+@@ -606,6 +606,10 @@
+ tar_entry->name = concat_path_file(tar.formated.prefix, tar.formated.name);
+ }
+
++ if (strlen(tar_entry->name) > 100) {
++ tar_entry->name[100] = 0;
++ }
++
+ // tar_entry->name = xstrdup(tar.formated.name);
+
+ /*