From c8d234ddcf42f4a2d3e30122877d792fabd92f68 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sun, 24 Nov 2019 15:59:54 +0100 Subject: Cleanup: remove the entirely redundant sqfs_has_xattr function Signed-off-by: David Oberhollenzer --- tar/tar2sqfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tar/tar2sqfs.c') 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", -- cgit v1.2.3