[BusyBox 0006314]: BusyBox 1.12.2: gzip/gunzip ignore "-c" option

bugs at busybox.net bugs at busybox.net
Wed Nov 12 23:41:14 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=6314 
====================================================================== 
Reported By:                niemidc
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   6314
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             11-12-2008 08:42 PST
Last Modified:              11-12-2008 15:41 PST
====================================================================== 
Summary:                    BusyBox 1.12.2: gzip/gunzip ignore "-c" option
Description: 
The -c option to gzip worked fine in 1.11.3 but is silently ignored in
1.12.2, making very commonly used gzip command lines fail in strange ways.
 For example:
gzip -cd foo.tar.gz | tar xvfp -
tar: short read
Meanwhile foo.tar.gz has been gunzipped and is sitting at foo.tar.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 11-12-08 14:05  
---------------------------------------------------------------------- 
Does this help?

http://busybox.net/downloads/fixes-1.12.2/busybox-1.12.2-getopt.patch 

---------------------------------------------------------------------- 
 niemidc - 11-12-08 15:11  
---------------------------------------------------------------------- 
Yes, the attached getopt patch appears to solve the problem.  Commands like
this work again:
gzip -cd foo.tar.gz | tar xvfp -

Is this a patch to fix a more widespread bug? 

---------------------------------------------------------------------- 
 vda - 11-12-08 15:40  
---------------------------------------------------------------------- 
Well, gzip_main calling gunzip_main is a pretty obscure corner case, but
yes, this may fix some other similar bugs also.

 

---------------------------------------------------------------------- 
 vda - 11-12-08 15:41  
---------------------------------------------------------------------- 
Fixed in svn and added to hotfixes 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-12-08 08:42  niemidc        New Issue                                    
11-12-08 08:42  niemidc        Status                   new => assigned     
11-12-08 08:42  niemidc        Assigned To               => BusyBox         
11-12-08 08:45  niemidc        Issue Monitored: niemidc                     
11-12-08 14:05  vda            Note Added: 0015574                          
11-12-08 15:11  niemidc        Note Added: 0015674                          
11-12-08 15:40  vda            Note Added: 0015684                          
11-12-08 15:40  vda            Note Edited: 0015684                         
11-12-08 15:41  vda            Status                   assigned => closed  
11-12-08 15:41  vda            Note Added: 0015694                          
======================================================================




More information about the busybox-cvs mailing list