From cccbd5aa139b8e0cac233f317cb3e7252daae0d9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 1 Aug 2019 16:03:59 +0200 Subject: Add ability to write_tar_header to embedd extended attributes This commit patches the tar writer to generate a PAX header with SCHILY xattr key/value pairs if requested. The Schily format is used for two reasons: - It is simple - It is apparently more widely supported than the libarchive format Signed-off-by: David Oberhollenzer --- tar/sqfs2tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tar/sqfs2tar.c') diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 13a2339..07be2b4 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -211,7 +211,7 @@ static int write_tree_dfs(fstree_t *fs, tree_node_t *n, data_reader_t *data) fstree_node_stat(fs, n, &sb); target = S_ISLNK(sb.st_mode) ? n->data.slink_target : NULL; - ret = write_tar_header(STDOUT_FILENO, &sb, name, target, + ret = write_tar_header(STDOUT_FILENO, &sb, name, target, NULL, record_counter++); if (ret > 0) { -- cgit v1.2.3