On Tue, Sep 12, 2023 at 12:39:58PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Actually return the error code when extended attribute checks fail. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> > --- > scrub/phase5.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Carlos Maiolino <cmaiolino@xxxxxxxxxx> > > > diff --git a/scrub/phase5.c b/scrub/phase5.c > index 1ef234bff68..31405709657 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)); > } >