[BusyBox 0001009]: unzip fails to truncate target files if file in archive smaller than existing file

bugs at busybox.net bugs at busybox.net
Sun Sep 3 14:23:49 UTC 2006


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1009 
====================================================================== 
Reported By:                rsanders256
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1009
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             08-25-2006 16:52 PDT
Last Modified:              09-03-2006 07:23 PDT
====================================================================== 
Summary:                    unzip fails to truncate target files if file in
archive smaller than existing file
Description: 
When overwriting a file from a .zip archive, if the new file is smaller
than the existing file unzip will not truncate the file length.  Call to
open() specifies O_CREAT but not O_TRUNC.

Affects both 1.2.0 and 1.2.1.  Patch attached.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 09-03-06 07:23  
---------------------------------------------------------------------- 
Fixed in svn 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-25-06 16:52  rsanders256    New Issue                                    
08-25-06 16:52  rsanders256    Status                   new => assigned     
08-25-06 16:52  rsanders256    Assigned To               => BusyBox         
08-25-06 16:52  rsanders256    File Added: busybox_unzip_truncate.patch         
          
09-03-06 07:23  vda            Status                   assigned => closed  
09-03-06 07:23  vda            Note Added: 0001608                          
======================================================================




More information about the busybox-cvs mailing list