1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 11:16:16 +02:00

Avoid failure of root-only test when run with a restrictive umask.

* tests/rm/no-give-up: Ensure that non-root can access "d/" through
root-owned ".".  Reported by AIDA Shinra.
This commit is contained in:
Jim Meyering
2007-05-04 12:01:43 +02:00
parent ab402c29f9
commit 3affac54ed
2 changed files with 10 additions and 4 deletions

View File

@@ -34,10 +34,12 @@ trap '(exit $?); exit $?' 1 2 13 15
framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
mkdir d
touch d/f
chown -R $NON_ROOT_USERNAME d
chmod go= .
mkdir d || framework_failure=1
touch d/f || framework_failure=1
chown -R $NON_ROOT_USERNAME d || framework_failure=1
# Ensure that non-root can access files in root-owned ".".
chmod go=x . || framework_failure=1
if test $framework_failure = 1; then
echo "$0: failure in testing framework" 1>&2