From fbe66e384476e4d9d458e51f56a4e7bc38f71b33 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 24 Sep 2020 19:34:33 +0200 Subject: Fix: tar2sqfs: when skipping non-prefixed files, also skip contents Signed-off-by: David Oberhollenzer --- bin/tar2sqfs/process_tarball.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/tar2sqfs/process_tarball.c b/bin/tar2sqfs/process_tarball.c index d7aac8c..1de35fa 100644 --- a/bin/tar2sqfs/process_tarball.c +++ b/bin/tar2sqfs/process_tarball.c @@ -209,6 +209,8 @@ int process_tarball(FILE *input_file, sqfs_writer_t *sqfs) } if (!is_prefixed) { + if (skip_entry(input_file, hdr.sb.st_size)) + goto fail; clear_header(&hdr); continue; } -- cgit v1.2.3