summaryrefslogtreecommitdiff
path: root/tar/tar2sqfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 15:59:54 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-24 16:05:01 +0100
commitc8d234ddcf42f4a2d3e30122877d792fabd92f68 (patch)
tree630ecf78f2f22aa1e2bbc6631d5179eab8e52c2e /tar/tar2sqfs.c
parent58c012f6fa5bbda88a849b7ecf93519400ee0a43 (diff)
Cleanup: remove the entirely redundant sqfs_has_xattr function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tar/tar2sqfs.c')
-rw-r--r--tar/tar2sqfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/tar2sqfs.c b/tar/tar2sqfs.c
index 08bb8b5..d0f2851 100644
--- a/tar/tar2sqfs.c
+++ b/tar/tar2sqfs.c
@@ -277,7 +277,7 @@ static int copy_xattr(tree_node_t *node, tar_header_decoded_t *hdr)
}
for (xattr = hdr->xattr; xattr != NULL; xattr = xattr->next) {
- if (!sqfs_has_xattr(xattr->key)) {
+ if (sqfs_get_xattr_prefix_id(xattr->key) < 0) {
fprintf(stderr, "%s: squashfs does not "
"support xattr prefix of %s\n",
dont_skip ? "ERROR" : "WARNING",