summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-04 19:20:05 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-07-04 19:20:25 +0200
commit8a5f6693f2d1fea14f1941ee10910e3037fab506 (patch)
treee0ff28b46d02b2137779b844d095f04a30e4498d /lib/sqfs
parent02068bcd2531b763cc3f85274de95fceca7dabb1 (diff)
Fix: actually check return value when writing xattrs
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/write_xattr.c2
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)