Re: coreutils-6.10 tests/misc/pwd-long fails when / is not readable
From:
Theodoros V. Kalamatianos
Subject:
Re: coreutils-6.10 tests/misc/pwd-long fails when / is not readable
Date:
Sun, 24 Feb 2008 01:15:22 +0200 (EET)
User-agent:
Alpine 1.00 (LRH 882 2007-12-20)
On Sat, 23 Feb 2008, Jim Meyering wrote:
Would you please confirm that this patch is sufficient?
Subject: [PATCH] Avoid test failures when root (/) is not readable.
* tests/test-lib.sh (require_readable_root_): New function.
* tests/misc/pwd-long: Skip this test when / is unreadable.
* tests/du/slash: Likewise.
This is required at least for Mandrake/Mandriva in "secure" mode.
Reported by Theodoros V. Kalamatianos in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/12800
After a minor modification to apply to coreutils-6.10, I run the tests and
everything was fine. Got the SKIP messages too - which my own patches
(adding `[[ -r / ]] || exit 0' to both tests) did not show...
Thanks for the quick resolution!
Regards,
Theodoros Kalamatianos