aboutsummaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
Diffstat (limited to 'tar')
-rw-r--r--tar/tar2sqfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index bce6a4d..dec717b 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -176,7 +176,7 @@ static int write_file(tar_header_decoded_t *hdr, file_info_t *fi,
if (ret)
return -1;
- return skip_padding(STDIN_FILENO, hdr->sparse_size);
+ return skip_padding(STDIN_FILENO, hdr->record_size);
}
if (write_data_from_fd(data, fi, STDIN_FILENO))
@@ -242,7 +242,7 @@ static int process_tar_ball(fstree_t *fs, data_writer_t *data)
count += m->count;
}
- if (count != hdr.sparse_size)
+ if (count != hdr.record_size)
skip = true;
if (skip) {