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

bugs at busybox.net bugs at busybox.net
Fri Aug 25 23:52:23 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             08-25-2006 16:52 PDT
Last Modified:              08-25-2006 16:52 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.
====================================================================== 

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         
          
======================================================================




More information about the busybox-cvs mailing list