diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-24 18:50:20 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-09-24 18:50:20 +0200 |
commit | 6899be9c0517033473bab9868be508b909277193 (patch) | |
tree | 7b0f4b9bd90059787c38334000e76e2778900be4 /bin/tar2sqfs | |
parent | afd63e2ae9764ff2d6f681aa2bf3a3a63d8e9dfe (diff) |
Fix: tar2sqfs: don't touch the path after determining it is broken
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'bin/tar2sqfs')
-rw-r--r-- | bin/tar2sqfs/process_tarball.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bin/tar2sqfs/process_tarball.c b/bin/tar2sqfs/process_tarball.c index 4d7f0a1..00805ec 100644 --- a/bin/tar2sqfs/process_tarball.c +++ b/bin/tar2sqfs/process_tarball.c @@ -230,9 +230,7 @@ int process_tarball(istream_t *input_file, sqfs_writer_t *sqfs) fprintf(stderr, "skipping '%s' (invalid name)\n", hdr.name); skip = true; - } - - if (root_becomes != NULL) { + } else if (root_becomes != NULL) { if (strncmp(hdr.name, root_becomes, rootlen) == 0) { if (hdr.name[rootlen] == '\0') { is_root = true; |