summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-16 16:46:34 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-16 16:47:24 +0200
commitd2312abd0f80c74a12c46f45fa967f0758cef5d5 (patch)
tree566419eecf5e036e422277881c585c8b5cabe239
parent7104283e79ee083a60e33b24e7b6578bf14424c7 (diff)
Fix: don't try to read xattrs if there are none
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--lib/sqfs/sqfs_reader.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqfs/sqfs_reader.c b/lib/sqfs/sqfs_reader.c
index 85cf97a..197e08f 100644
--- a/lib/sqfs/sqfs_reader.c
+++ b/lib/sqfs/sqfs_reader.c
@@ -40,6 +40,9 @@ int sqfs_reader_open(sqfs_reader_t *rd, const char *filename, int rdtree_flags)
goto fail_cmp;
}
+ if (rd->super.flags & SQFS_FLAG_NO_XATTRS)
+ rdtree_flags &= ~RDTREE_READ_XATTR;
+
if (deserialize_fstree(&rd->fs, &rd->super, rd->cmp, rd->sqfsfd,
rdtree_flags)) {
goto fail_cmp;