jigneshvasoya / fuse-zip

Automatically exported from code.google.com/p/fuse-zip
GNU Lesser General Public License v3.0
0 stars 0 forks source link

fuse-zip doesn't honor the -r flag for some zip files #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by goo...@0x1a.de on 6 Oct 2010 at 2:14

Attachments:

GoogleCodeExporter commented 9 years ago
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.

Original comment by alexander.galanin on 6 Oct 2010 at 4:39

GoogleCodeExporter commented 9 years ago
Fixed in version 0.2.13

Original comment by alexander.galanin on 6 Dec 2010 at 5:38