summaryrefslogtreecommitdiff
path: root/tar
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 18:53:25 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-06-30 18:53:25 +0200
commit55568b1437f4cc6634c8a6e10c96bb26256176d2 (patch)
tree84fedb5c01d6ef17dc5f455214857fc8bb11ebb4 /tar
parentfbd5e80aedd354c010021145dbea9bd0b29563b7 (diff)
libtar: clarify actual size vs on-disk record size
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
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) {