From 916c8f6e26140cf3c03e58726b57dc4f86e18316 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 22 Oct 2021 17:19:34 +0200 Subject: Cleanup: remove struct stat from libtar The idea was originally to use struct stat in the libfstree code, so we can simply hose data read from a directory into the fstree_t. The struct was then also used with libtar, for simpler interoperation, but it turned out to introduce a lot of platform quirks and causes more trouble than it's worth. Signed-off-by: David Oberhollenzer --- include/tar.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/tar.h b/include/tar.h index 10e7b52..41be57f 100644 --- a/include/tar.h +++ b/include/tar.h @@ -78,7 +78,6 @@ typedef struct tar_xattr_t { } tar_xattr_t; typedef struct { - struct stat sb; char *name; char *link_target; sparse_map_t *sparse; @@ -88,8 +87,10 @@ typedef struct { bool is_hard_link; tar_xattr_t *xattr; - /* broken out since struct stat could contain - 32 bit values on 32 bit systems. */ + sqfs_u16 mode; + sqfs_u64 uid; + sqfs_u64 gid; + sqfs_u64 devno; sqfs_s64 mtime; } tar_header_decoded_t; -- cgit v1.2.3