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

From: Bernhard Voelker <[email-masked]>
Date: Sun, 2 Feb 2020 14:11:18 +0100

On 2020-02-02 07:32, Jim Meyering wrote:
> FTR, here's a minimal test addition that exercises the bug. Succeeds
> on 6.10, fails on 6.11:

Minor tweak for the test ...

-rmdir --ignore-fail-on-non-empty x/y && fail=1
+returns_ 1 rmdir --ignore-fail-on-non-empty x/y || fail=1

... due to:

  tests/rmdir/ignore.sh:36:rmdir --ignore-fail-on-non-empty x/y && fail=1
  maint.mk: && fail=1 detected. Please use: returns_ 1 ... || fail=1
  make: *** [cfg.mk:516: sc_prohibit_and_fail_1] Error 1

Thanks & have a nice day,
Berny