diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-16 16:46:34 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-08-16 16:47:24 +0200 |
commit | d2312abd0f80c74a12c46f45fa967f0758cef5d5 (patch) | |
tree | 566419eecf5e036e422277881c585c8b5cabe239 /lib/sqfs/sqfs_reader.c | |
parent | 7104283e79ee083a60e33b24e7b6578bf14424c7 (diff) |
Fix: don't try to read xattrs if there are none
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/sqfs_reader.c')
-rw-r--r-- | lib/sqfs/sqfs_reader.c | 3 |
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; |