aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2023-09-12 12:39:58 -0700
committerCarlos Maiolino <cem@kernel.org>2023-10-05 14:57:20 +0200
commit92c1851160c5142d4bd8f4d25c28322024fdf24b (patch)
treec1ea0f7ea367dd7858a1d84093ccd52437dee5a0
parent7f5bbe286e02b0c7df72aba386b56af92b812dc3 (diff)
downloadxfsprogs-dev-92c1851160c5142d4bd8f4d25c28322024fdf24b.tar.gz
xfs_scrub: actually return errno from check_xattr_ns_names
Actually return the error code when extended attribute checks fail. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
-rw-r--r--scrub/phase5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scrub/phase5.c b/scrub/phase5.c
index 1ef234bff6..3140570965 100644
--- a/scrub/phase5.c
+++ b/scrub/phase5.c
@@ -202,6 +202,7 @@ check_xattr_ns_names(
if (error) {
if (errno == ESTALE)
errno = 0;
+ error = errno;
if (errno)
str_errno(ctx, descr_render(dsc));
}