fuse-zip doesn't honor the -r flag for some zip files
Originally reported on Google Code with ID 28 ``` Some of my archives get modified just by mounting and unmounting them. Neither -r / -o ro nor chmod -w helps.
The following information might be useful to resolve a problem:
(Using changeset 9659946683ca of fuse-zip)
1. mount the attached file read-only
shasum wget.zip
21119d9b708b1dac53ddbee192560c44242976eb wget.zip
fuse-zip -o ro wget.zip wget
2. unmount
fusermount -u wget
3. Check again:
shasum wget.zip
37fb2a31fe554bea2f556dc5760aa5c7c52d58db wget.zip
The archive has been changed! In additions, the flags have been changed from -r-------- to -rw-r--r--
4. versions of libfuse, libzip
libzip-devel: 0.9-23.2 fuse-devel: 2.7.4-3.4.1 from OpenSuse 11.2
5. uname -a
uname -a
Linux depotng 2.6.31.14-0.1-desktop #1 SMP PREEMPT 2010-09-17 11:32:00 +0200 x86_64
x86_64 x86_64 GNU/Linux
```
Reported by `google@0x1a.de` on 2010-10-06 14:14:49
<hr>
- *Attachment: [wget.zip](https://storage.googleapis.com/google-code-attachments/fuse-zip/issue-28/comment-0/wget.zip)*
Comments (3)
-
Account Deleted -
Account Deleted ``` Fixed in version 0.2.13 ```
Reported by `alexander.galanin` on 2010-12-06 17:38:55 - Status changed: `Fixed`
-
repo owner - changed status to closed
- Log in to comment
``` Root cause: archive doesn't contain all directories used in file paths (contains wget.wip/News, but does not contain wget.wip). So needed directories are created while loading an archive to build a full directory tree => zip_add_dir() is invoked => archive is modified. ```
Reported by `alexander.galanin` on 2010-10-06 16:39:14 - Status changed: `Accepted` - Labels added: Type-Defect, Component-Logic