[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [BusyBox] Tar extract (from pipe) bug
From:       Erik Andersen <andersen () lineo ! com>
Date:       2000-07-28 15:22:23
[Download RAW message or body]

On Fri Jul 28, 2000 at 12:52:00AM +0200, Robert Kaiser wrote:
> Hi again,
> 
> In revision 1.53, a new bug was accidentally introduced into tar.c:
> 
> begin testcase ------------------------------------------------------
> BusyBox v0.47pre (2000.07.27-19:32+0000) Built-in shell
> Enter 'help' for a list of built-in commands.
> 
> /home/rob/busybox/tmp # echo "Hi There!!!!!!" >test
> /home/rob/busybox/tmp # tar cf test.tar ./test
> /home/rob/busybox/tmp # rm test
> /home/rob/busybox/tmp # ls -l
> -rw-r--r--    1 rob      eng         2048 Jul 28 00:37 test.tar
> /home/rob/busybox/tmp # cat test.tar | tar xvf -
> ./test
> Hi There!!!!!!
> /home/rob/busybox/tmp # ls -l
> -rw-r--r--    1 rob      eng         2048 Jul 28 00:37 test.tar
> 
> 
> emd testcase ---------------------------------------------------------
> 
> 
> When tar is asked to extract from stdin, the tar file contents
> _not_ extracted, but instead it is dumped to stdout.
> 
> Attached is a simplistic patch to fix this.
> 

Thanks.  Applied.  Sorry about that, 

 -Erik

--
Erik B. Andersen   email:  andersen@lineo.com
--This message was written using 73% post-consumer electrons--



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic