aboutsummaryrefslogtreecommitdiff
path: root/unpack
diff options
context:
space:
mode:
Diffstat (limited to 'unpack')
-rw-r--r--unpack/rdsquashfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/unpack/rdsquashfs.c b/unpack/rdsquashfs.c
index e8ec3ec..29f9b79 100644
--- a/unpack/rdsquashfs.c
+++ b/unpack/rdsquashfs.c
@@ -80,10 +80,13 @@ int main(int argc, char **argv)
goto out_id;
}
- data = data_reader_create(file, &super, cmp);
+ data = data_reader_create(file, super.block_size, cmp);
if (data == NULL)
goto out_dr;
+ if (data_reader_load_fragment_table(data, &super))
+ goto out_data;
+
ret = sqfs_dir_reader_get_full_hierarchy(dirrd, idtbl, opt.cmdpath,
opt.rdtree_flags, &n);
if (ret) {