summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-24 19:34:33 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-09-24 19:40:31 +0200
commitfbe66e384476e4d9d458e51f56a4e7bc38f71b33 (patch)
treeb9a38effe85ea1ac7ede1568612d5de116858c08
parente890b0d8be5c038802ae3b670e64c6f1373c32d7 (diff)
Fix: tar2sqfs: when skipping non-prefixed files, also skip contents
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--bin/tar2sqfs/process_tarball.c2
1 files changed, 2 insertions, 0 deletions
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;
}