From 6623b1fe4df1e2fceb27eff286a86cf36809b2bc Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 4 Jul 2019 12:43:57 +0200 Subject: libtar: add support for xattr extensions Signed-off-by: David Oberhollenzer --- include/tar.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/tar.h b/include/tar.h index fd701d9..424be80 100644 --- a/include/tar.h +++ b/include/tar.h @@ -56,6 +56,13 @@ typedef struct { char padding[7]; } gnu_sparse_t; +typedef struct tar_xattr_t { + struct tar_xattr_t *next; + char *key; + char *value; + char data[]; +} tar_xattr_t; + typedef struct { struct stat sb; char *name; @@ -64,6 +71,7 @@ typedef struct { uint64_t actual_size; uint64_t record_size; bool unknown_record; + tar_xattr_t *xattr; } tar_header_decoded_t; #define TAR_TYPE_FILE '0' -- cgit v1.2.3