[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: xorriso: listing files+offsets in an ISO9660 image w/o RockRidge



Hi,

regrettably the ban on reading Rock Ridge gets not into effect before
the attempt to read the SUSP entries of the root directory record.
So if that chain is damaged, then one would have to hack the source code:

-------------------------------------------------------------------------
--- libisofs/fs_image.c 2016-07-22 14:03:51 +0000
+++ libisofs/fs_image.c 2016-11-09 14:02:17 +0000
@@ -3017,15 +3017,14 @@
     } while (buffer[0] != 255);
 
     /* 4. check if RR extensions are being used */
-    ret = read_root_susp_entries(data, data->pvd_root_block);
-    if (ret < 0) {
-        goto fs_cleanup;
-    }
-
-    /* user doesn't want to read RR extensions */
     if (opts->norock) {
+        /* user doesn't want to read RR extensions */
         data->rr = RR_EXT_NO;
     } else {
+        ret = read_root_susp_entries(data, data->pvd_root_block);
+        if (ret < 0) {
+            goto fs_cleanup;
+        }
         data->rr = data->rr_version;
     }

-------------------------------------------------------------------------

After this change, the code which triggered the error message is not
reached any more, if Rock Ridge reading is disabled.


Have a nice day :)

Thomas


Reply to: