From 3c219238d9b9d8b600a55a273698c52a5d447d01 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Sat, 28 Sep 2019 23:33:22 +0200 Subject: Fix sqfs2tar inversion of xattr flag If the super block has the no-xattr-flag NOT SET, try to read the extended attributes. Signed-off-by: David Oberhollenzer --- tar/sqfs2tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index af9e9ca..0ca0f72 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -432,7 +432,7 @@ int main(int argc, char **argv) goto out_data; } - if (!no_xattr && (super.flags & SQFS_FLAG_NO_XATTRS)) { + if (!no_xattr && !(super.flags & SQFS_FLAG_NO_XATTRS)) { xr = sqfs_xattr_reader_create(file, &super, cmp); if (xr == NULL) { goto out_dr; -- cgit v1.2.3