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:34:33 +0200
commitfdefb8d09adf74635ad00883a1389361aa4740dc (patch)
tree70a119b9f88e02aa4c6853394b68d00ba9e6102b
parent6899be9c0517033473bab9868be508b909277193 (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 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;
}