Readonly usage of fuse-zip alters archive

Issue #43 invalid
Former user created an issue

Originally reported on Google Code with ID 43

I am experiencing an issue where fuse-zip modifies the content of an archive even though
the readonly option (-r) is specified.

$ pwd
/home/kp
$ md5sum test.war
28ac4818756b4ca8450df846e12a1652  test.war
$ fuse-zip -r test.war /home/kp/test
$ md5sum test.war
28ac4818756b4ca8450df846e12a1652  test.war
$ cd test
/test$ cat * 1>/dev/null 2>&1
/test$ cd ..
$ sudo umount /home/kp/test
$ md5sum test.war
eed98ac92730e8ed11c144629beaa046  test.war

The md5sum has changed after mounting the archive readonly and doing a simple readonly
operation of files in the mount followed by unmounting the archive again.

When I investigate what has happened I can see that new directories have been silently
added (looks like a  duplication has taken place).

If I take a healthy version of the war-file to compare the modified against, the diff
looks similar to this:
kp@puppet01:~$ diff -u good.diff bad.diff
--- good.diff   2014-04-24 14:39:12.028771264 +0200
+++ bad.diff    2014-04-24 14:39:20.428775399 +0200
@@ -1,4 +1,4 @@
-Archive:  healthy.war
+Archive:  test.war <--- This is the modified
   Length      Date    Time    Name
 ---------  ---------- -----   ----
         0  2014-03-25 15:24   META-INF/
@@ -81,5 +81,8 @@
        50  2014-03-25 15:23   index.jsp
     10753  2014-03-25 15:23   META-INF/maven/dk.silverbullet.bivwsp/bivwsp/pom.xml
       113  2014-03-25 15:24   META-INF/maven/dk.silverbullet.bivwsp/bivwsp/pom.properties
+        0  2014-04-24 14:29   META-INF/maven
+        0  2014-04-24 14:29   META-INF/maven/dk.silverbullet.bivwsp
+        0  2014-04-24 14:29   META-INF/maven/dk.silverbullet.bivwsp/bivwsp
 ---------                     -------
-  5810996                     80 files
+  5810996                     83 files

Reported by klaus1984p on 2014-04-24 12:59:05

Comments (2)

  1. Former user Account Deleted
    I am unable to reproduce this issue in fuse-zip 0.4.0. Are you using fuse-zip < 0.2.13
    (see issue #28)?
    

    Reported by alexander.galanin on 2015-03-09 09:43:30 - Status changed: NotReproducible

  2. Log in to comment