From fdefb8d09adf74635ad00883a1389361aa4740dc 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(+) (limited to 'bin') diff --git a/bin/tar2sqfs/process_tarball.c b/bin/tar2sqfs/process_tarball.c index 00805ec..7492f27 100644 --- a/bin/tar2sqfs/process_tarball.c +++ b/bin/tar2sqfs/process_tarball.c @@ -256,6 +256,8 @@ int process_tarball(istream_t *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