GNU bug report logs - #42633
8.32 make check as root failure of rmdir/ignore.sh

Previous Next

Package: coreutils;

Reported by: Nick Alcock <nix <at> esperi.org.uk>

Date: Fri, 31 Jul 2020 14:33:02 UTC

Severity: normal

Found in version 8.32

Done: Bernhard Voelker <mail <at> bernhard-voelker.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: Pádraig Brady <P <at> draigBrady.com>, Nick Alcock <nix <at> esperi.org.uk>, 42633 <at> debbugs.gnu.org
Subject: bug#42633: 8.32 make check as root failure of rmdir/ignore.sh
Date: Mon, 3 Aug 2020 22:07:35 +0200
On 2020-07-31 21:42, Pádraig Brady wrote:
> Patch looks good thanks.

Thanks.

> An alternative could be to use rmdir itself to test, like:
> 
>    if ! rmdir x/y 2>/dev/null; then
>      returns_ 1 rmdir --ignore-fail-on-non-empty x/y || fail=1
>    fi

I thought about that, but as there's a second hunk to be guarded a couple
of lines later, we'd have to remember the result of the test in a variable,
and test for that there.  That's more code, so unless we're getting new
FPs on some platform, I'd go with the standard uid_is_privileged_ function.

Pushing soon ... unless there are objections.
Thanks again - also for testing, Nick.

Have a nice day,
Berny




This bug report was last modified 4 years and 289 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.