summaryrefslogtreecommitdiffstats
path: root/tools/busybox-patches
diff options
context:
space:
mode:
authorSebastian Schmelzer2007-06-22 18:07:10 +0200
committerSebastian Schmelzer2007-06-22 18:07:10 +0200
commiteed50a3ac404baf9272bea4623b3c454e9990eca (patch)
treea65c6ef0077f9a6ebd05fa625175f0aa4f07977a /tools/busybox-patches
parent* fixed problem with some lame shells not supporting {a,b,c} constructs, (diff)
downloadcore-eed50a3ac404baf9272bea4623b3c454e9990eca.tar.gz
core-eed50a3ac404baf9272bea4623b3c454e9990eca.tar.xz
core-eed50a3ac404baf9272bea4623b3c454e9990eca.zip
new busybox snapshot 22.06.2007
fixed bzip2 patch grep extendet regex support enabled git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1186 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'tools/busybox-patches')
-rw-r--r--tools/busybox-patches/bzip2-payload-1.6.0.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/busybox-patches/bzip2-payload-1.6.0.diff b/tools/busybox-patches/bzip2-payload-1.6.0.diff
index 0211e20f..1815b285 100644
--- a/tools/busybox-patches/bzip2-payload-1.6.0.diff
+++ b/tools/busybox-patches/bzip2-payload-1.6.0.diff
@@ -38,19 +38,19 @@ diff -ru ./archival/rpm2cpio.c ../busybox-1.6.0/archival/rpm2cpio.c
- bb_error_msg_and_die("invalid gzip magic");
+ if ((magic[0] == 0x1f) && (magic[1] == 0x8b)) {
+ check_header_gzip_or_die(rpm_fd);
-+ if (inflate_gunzip(rpm_fd, STDOUT_FILENO) < 0) {
++ if (unpack_gz_stream(rpm_fd, STDOUT_FILENO) < 0) {
+ bb_error_msg("error inflating (gzip)");
+ }
}
-
- check_header_gzip_or_die(rpm_fd);
-- if (inflate_gunzip(rpm_fd, STDOUT_FILENO) < 0) {
+- if (unpack_gz_stream(rpm_fd, STDOUT_FILENO) < 0) {
- bb_error_msg("error inflating");
+ else if ((magic[0] == 'B') && (magic[1] == 'Z')) {
+#ifdef CONFIG_FEATURE_RPM2CPIO_BZIP2
+ /* return to position before magic (eek..!) */
+ lseek(rpm_fd, -2, SEEK_CUR);
-+ if (uncompressStream(rpm_fd, fileno(stdout)) != 0)
++ if (unpack_bz2_stream(rpm_fd, fileno(stdout)) != 0)
+ bb_error_msg("error inflating (bzip2)");
+#else
+ bb_error_msg_and_die("bzip2 not supported");