diff options
-rw-r--r-- | meta/packages/ipkg/files/fix_tar_extension.patch | 37 | ||||
-rw-r--r-- | meta/packages/ipkg/ipkg.inc | 1 | ||||
-rw-r--r-- | meta/packages/ipkg/ipkg_0.99.154.bb | 2 |
3 files changed, 39 insertions, 1 deletions
diff --git a/meta/packages/ipkg/files/fix_tar_extension.patch b/meta/packages/ipkg/files/fix_tar_extension.patch new file mode 100644 index 0000000000..d9db5fca2c --- /dev/null +++ b/meta/packages/ipkg/files/fix_tar_extension.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Index: C/libbb/unarchive.c | ||
2 | =================================================================== | ||
3 | --- C.orig/libbb/unarchive.c 2005-02-05 16:58:19.000000000 -0500 | ||
4 | +++ C/libbb/unarchive.c 2006-08-08 08:10:14.268431408 -0400 | ||
5 | @@ -28,7 +28,7 @@ | ||
6 | #include "libbb.h" | ||
7 | |||
8 | #define CONFIG_FEATURE_TAR_OLDGNU_COMPATABILITY 1 | ||
9 | -// #define CONFIG_FEATURE_TAR_GNU_EXTENSIONS | ||
10 | +#define CONFIG_FEATURE_TAR_GNU_EXTENSIONS 1 | ||
11 | |||
12 | #ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS | ||
13 | static char *longname = NULL; | ||
14 | @@ -657,7 +657,10 @@ | ||
15 | # ifdef CONFIG_FEATURE_TAR_GNU_EXTENSIONS | ||
16 | case 'L': { | ||
17 | longname = xmalloc(tar_entry->size + 1); | ||
18 | - archive_xread_all((int) tar_stream, longname, tar_entry->size); | ||
19 | + if(fread(longname, tar_entry->size, 1, tar_stream) != 1) { | ||
20 | + error_msg("Short read in gnu extension"); | ||
21 | + return(NULL); | ||
22 | + } | ||
23 | longname[tar_entry->size] = '\0'; | ||
24 | archive_offset += tar_entry->size; | ||
25 | |||
26 | @@ -665,7 +668,10 @@ | ||
27 | } | ||
28 | case 'K': { | ||
29 | linkname = xmalloc(tar_entry->size + 1); | ||
30 | - archive_xread_all((int) tar_stream, longname, tar_entry->size); | ||
31 | + if(fread(linkname, tar_entry->size, 1, tar_stream) != 1) { | ||
32 | + error_msg("Short read in gnu extension"); | ||
33 | + return(NULL); | ||
34 | + } | ||
35 | linkname[tar_entry->size] = '\0'; | ||
36 | archive_offset += tar_entry->size; | ||
37 | |||
diff --git a/meta/packages/ipkg/ipkg.inc b/meta/packages/ipkg/ipkg.inc index 8fc6c9efe0..49bdd22c08 100644 --- a/meta/packages/ipkg/ipkg.inc +++ b/meta/packages/ipkg/ipkg.inc | |||
@@ -10,6 +10,7 @@ FILES_libipkg = "${libdir}" | |||
10 | AUTO_LIBNAME_PKGS = "libipkg" | 10 | AUTO_LIBNAME_PKGS = "libipkg" |
11 | 11 | ||
12 | SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \ | 12 | SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')} \ |
13 | file://fix_tar_extension.patch;patch=1 \ | ||
13 | file://terse.patch;patch=1" | 14 | file://terse.patch;patch=1" |
14 | 15 | ||
15 | S = "${WORKDIR}/ipkg/C" | 16 | S = "${WORKDIR}/ipkg/C" |
diff --git a/meta/packages/ipkg/ipkg_0.99.154.bb b/meta/packages/ipkg/ipkg_0.99.154.bb index de6af147b6..532072d387 100644 --- a/meta/packages/ipkg/ipkg_0.99.154.bb +++ b/meta/packages/ipkg/ipkg_0.99.154.bb | |||
@@ -1,2 +1,2 @@ | |||
1 | include ipkg.inc | 1 | include ipkg.inc |
2 | PR = "r3" | 2 | PR = "r4" |