Anonymous | Login | Signup for a new account | 11-10-2008 12:24 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003914 | [BusyBox] Other | minor | always | 06-29-08 06:58 | 06-29-08 07:15 | ||||
Reporter | prien | View Status | public | ||||||
Assigned To | BusyBox | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 1.2.x | ||||||
Summary | 0003914: busybox unzip overwrite existing files | ||||||||
Description |
when i execute busybox unzip -o myfile.zip, I want to decompress new myfile to overwrite existing old myfile,but it produces unexpected results. If the size of the new file(myfile) is smalller than the old one, it cannot completely override the old file, and I got the wrong file. I look for the source code in archival/unzip.c and find 369 line: 369 dst_fd = bb_xopen(dst_fn, O_WRONLY | O_CREAT); I change it with: 369 dst_fd = bb_xopen(dst_fn, O_WRONLY | O_CREAT | O_TRUNC); so busybox unzip -o myfile.zip can work right |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Copyright © 2000 - 2006 Mantis Group |