summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-01 15:25:23 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-01 15:30:44 +0200
commit583331233a21c554f546fffa3ceebc0143085c9f (patch)
tree7baac194e8cbcd502e690d87bf40945f40d5340d /lib
parent0ec65af730f7c6307a5c8e7330a31ae2b785d95d (diff)
Fix super block flags: clear "no xattr" flag when writing xattrs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/sqfs/write_xattr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sqfs/write_xattr.c b/lib/sqfs/write_xattr.c
index ce606e3..712c6e9 100644
--- a/lib/sqfs/write_xattr.c
+++ b/lib/sqfs/write_xattr.c
@@ -294,6 +294,7 @@ int write_xattr(int outfd, fstree_t *fs, sqfs_super_t *super,
super->xattr_id_table_start = super->bytes_used;
super->bytes_used += sizeof(idtbl) + sizeof(tbl[0]) * blocks;
+ super->flags &= ~SQFS_FLAG_NO_XATTRS;
free(tbl);
meta_writer_destroy(mw);