From 8a5f6693f2d1fea14f1941ee10910e3037fab506 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Thu, 4 Jul 2019 19:20:05 +0200 Subject: Fix: actually check return value when writing xattrs Signed-off-by: David Oberhollenzer --- lib/sqfs/write_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqfs') 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) -- cgit v1.2.3