From 377112c6c1b307023265706b1848fb0952fd809c Mon Sep 17 00:00:00 2001
From: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Date: Sun, 22 Mar 2020 20:18:49 +0100
Subject: Do not try to read back the compressor options

None of the currently implemented compressors do anything with that data.
They are all at the mercy of the data actually in the image.

This commit removes the code from sqfs2tar and rdsquashfs that decodes
the options, which also has the side effect of increasing compatibillity
with some non-confirming images.

Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
---
 unpack/rdsquashfs.c | 9 ---------
 1 file changed, 9 deletions(-)

(limited to 'unpack')

diff --git a/unpack/rdsquashfs.c b/unpack/rdsquashfs.c
index c166f4a..fa2bbb4 100644
--- a/unpack/rdsquashfs.c
+++ b/unpack/rdsquashfs.c
@@ -51,15 +51,6 @@ int main(int argc, char **argv)
 		goto out_file;
 	}
 
-	if (super.flags & SQFS_FLAG_COMPRESSOR_OPTIONS) {
-		ret = cmp->read_options(cmp, file);
-		if (ret) {
-			sqfs_perror(opt.image_name, "reading compressor "
-				    "options", ret);
-			goto out_cmp;
-		}
-	}
-
 	if (!(super.flags & SQFS_FLAG_NO_XATTRS)) {
 		xattr = sqfs_xattr_reader_create(0);
 		if (xattr == NULL) {
-- 
cgit v1.2.3