On Sunday 11 November 2007 14:08, Eric BENARD wrote:
> Hi,
>
> I'm trying busybox 1.8.1 on ARM920t (compiled with gcc 4.1.2 + glibc
> 2.3.6 with -O2 -mtune=arm920t -msoft-float).
>
> tar cvzf / cvjf works fine
> tar tvjf / xvjf works fine
>
> tar tvzf / xvzf doesn't work and stays blocked forever,

> busybox 1.6.1 was working fine previously with he same compiler/glibc
> versions.
>
> gzip -d -c etc.tar.gz | tar tvf -
> is working fine.
>
> Are you aware of a recent change to tar/gzip which could create this
> problem ?

Yes. Please try attached patch.
--
vda
diff -urN busybox-1.8.1/archival/libunarchive/decompress_unzip.c 
busybox-1.8.1-tar_z/archival/libunarchive/decompress_unzip.c
--- busybox-1.8.1/archival/libunarchive/decompress_unzip.c      2007-11-09 
18:40:48.000000000 -0700
+++ busybox-1.8.1-tar_z/archival/libunarchive/decompress_unzip.c        
2007-11-11 18:35:13.000000000 -0700
@@ -1178,6 +1178,7 @@
        ALLOC_STATE;
        bytebuffer_max = 0x8000;
        bytebuffer = xmalloc(bytebuffer_max);
+       gunzip_src_fd = in;
 
  again:
        if (!check_header_gzip(PASS_STATE_ONLY)) {
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to