diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 16:03:59 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-01 16:23:07 +0200 |
commit | cccbd5aa139b8e0cac233f317cb3e7252daae0d9 (patch) | |
tree | d46867fe3bf78a3371ef3c6bbebcdab1d65435f7 /tar/sqfs2tar.c | |
parent | acfef038be1db770c33476bbb33b53558ddabc91 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar/sqfs2tar.c')
-rw-r--r-- | tar/sqfs2tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |