]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs_scrub: actually return errno from check_xattr_ns_names
authorDarrick J. Wong <djwong@kernel.org>
Tue, 12 Sep 2023 19:39:58 +0000 (12:39 -0700)
committerCarlos Maiolino <cem@kernel.org>
Thu, 5 Oct 2023 12:57:20 +0000 (14:57 +0200)
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>
scrub/phase5.c

index 1ef234bff68433186bd73b43f9bf5041ff510f10..31405709657755c1dd889b4161e38be3b9e25db9 100644 (file)
@@ -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));
        }