aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-04 12:43:57 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-04 13:42:06 +0200
commit6623b1fe4df1e2fceb27eff286a86cf36809b2bc (patch)
tree95dce50157ca3f79e3fdcfae901a124660f20e93 /include
parent56c1be44b5f77b067994a6f8f6ef2b397d7acadc (diff)
libtar: add support for xattr extensions
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include')
-rw-r--r--include/tar.h8
1 files changed, 8 insertions, 0 deletions
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'