Subject: Re: bug#39364: [PATCH] rmdir: fix clobbered errno

From: Jim Meyering <[email-masked]>
Date: Sat, 1 Feb 2020 22:32:42 -0800

On Fri, Jan 31, 2020 at 9:55 AM Pádraig Brady <[email-masked]> wrote:
> ...
> This looks like a regression introduced in v6.10-21-ged5c4e7
> I.E. is_empty_dir() is globbering errno, and thus
> a non specific and non terminating warning is output,
> rather than a specific error, and exit.

FTR, here's a minimal test addition that exercises the bug. Succeeds
on 6.10, fails on 6.11: