diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 21:48:12 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 21:50:49 +0200 |
commit | eddb62072f4d4d2402d520e5041d9677fa6efdff (patch) | |
tree | bfbde95d8b0e825de8fdd92d597ba226f67813b5 /unpack/rdsquashfs.h | |
parent | 0b79e0cad88fe6494c1d5af9a5e990b491170d11 (diff) |
Add flag to rdsquashfs to optionally set xattrs on unpacked files
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'unpack/rdsquashfs.h')
-rw-r--r-- | unpack/rdsquashfs.h | 6 |
1 files changed, 5 insertions, 1 deletions
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 <sys/sysmacros.h> #include <sys/types.h> +#ifdef HAVE_SYS_XATTR_H +#include <sys/xattr.h> +#endif #include <sys/prctl.h> #include <sys/wait.h> #include <string.h> @@ -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); |