From eddb62072f4d4d2402d520e5041d9677fa6efdff Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 1 Aug 2019 21:48:12 +0200 Subject: Add flag to rdsquashfs to optionally set xattrs on unpacked files Signed-off-by: David Oberhollenzer --- unpack/rdsquashfs.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'unpack/rdsquashfs.h') diff --git a/unpack/rdsquashfs.h b/unpack/rdsquashfs.h index 5990ab9..44635d8 100644 --- a/unpack/rdsquashfs.h +++ b/unpack/rdsquashfs.h @@ -20,6 +20,9 @@ #include #include +#ifdef HAVE_SYS_XATTR_H +#include +#endif #include #include #include @@ -37,6 +40,7 @@ enum UNPACK_FLAGS { UNPACK_CHOWN = 0x02, UNPACK_QUIET = 0x04, UNPACK_NO_SPARSE = 0x08, + UNPACK_SET_XATTR = 0x10, }; enum { @@ -62,7 +66,7 @@ void list_files(tree_node_t *node); int restore_fstree(tree_node_t *root, int flags); -int update_tree_attribs(tree_node_t *root, int flags); +int update_tree_attribs(fstree_t *fs, tree_node_t *root, int flags); int fill_unpacked_files(fstree_t *fs, data_reader_t *data, int flags, unsigned int num_jobs); -- cgit v1.2.3