diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-04 19:20:05 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-07-04 19:20:25 +0200 |
commit | 8a5f6693f2d1fea14f1941ee10910e3037fab506 (patch) | |
tree | e0ff28b46d02b2137779b844d095f04a30e4498d /lib/sqfs/write_xattr.c | |
parent | 02068bcd2531b763cc3f85274de95fceca7dabb1 (diff) |
Fix: actually check return value when writing xattrs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/write_xattr.c')
-rw-r--r-- | lib/sqfs/write_xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfs/write_xattr.c b/lib/sqfs/write_xattr.c index ab2e28c..e81f677 100644 --- a/lib/sqfs/write_xattr.c +++ b/lib/sqfs/write_xattr.c @@ -185,7 +185,7 @@ int write_xattr(int outfd, fstree_t *fs, sqfs_super_t *super, if ((size_t)ret < sizeof(idtbl)) goto fail_trunc; - write_retry(outfd, tbl, sizeof(tbl[0]) * blocks); + ret = write_retry(outfd, tbl, sizeof(tbl[0]) * blocks); if (ret < 0) goto fail_wr; if ((size_t)ret < sizeof(tbl[0]) * blocks) |