diff options
author | Darrick J. Wong <djwong@kernel.org> | 2023-09-12 12:39:58 -0700 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2023-10-05 14:57:20 +0200 |
commit | 92c1851160c5142d4bd8f4d25c28322024fdf24b (patch) | |
tree | c1ea0f7ea367dd7858a1d84093ccd52437dee5a0 | |
parent | 7f5bbe286e02b0c7df72aba386b56af92b812dc3 (diff) | |
download | xfsprogs-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.c | 1 |
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)); } |