summaryrefslogtreecommitdiff
path: root/lib/tar
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tar')
-rw-r--r--lib/tar/read_header.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index 2918d09..1f20334 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -222,6 +222,11 @@ int read_header(FILE *fp, tar_header_decoded_t *out)
goto fail;
set_by_pax |= PAX_NAME;
continue;
+ case TAR_TYPE_PAX_GLOBAL:
+ if (read_number(hdr.size, sizeof(hdr.size), &pax_size))
+ goto fail;
+ skip_entry(fp, pax_size);
+ continue;
case TAR_TYPE_PAX:
clear_header(out);
if (read_number(hdr.size, sizeof(hdr.size), &pax_size))