summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-05-03 19:36:34 +0200
committerJim Meyering <jim@meyering.net>2007-05-03 19:36:34 +0200
commitbf8cfacd2468ada25c46a228344ab7af36515f67 (patch)
treef6990c3bd1b99eafd5cb4d86538a94e2f6b09128 /tests
parent2539b53760dd4efad304e6f5f5e0880b4510d378 (diff)
downloadcoreutils-bf8cfacd2468ada25c46a228344ab7af36515f67.tar.xz
Avoid test failure when run with a permissive umask.
* tests/rm/no-give-up: Set permissions of test directory properly, i.e., not depending on umask prohibiting go=w. Reported by AIDA Shinra.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/rm/no-give-up4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rm/no-give-up b/tests/rm/no-give-up
index b85132bdb..dbd99eb14 100755
--- a/tests/rm/no-give-up
+++ b/tests/rm/no-give-up
@@ -2,7 +2,7 @@
# With rm from coreutils-5.2.1 and earlier, `rm -r' would mistakenly
# give up too early under some conditions.
-# Copyright (C) 2004, 2006 Free Software Foundation, Inc.
+# Copyright (C) 2004, 2006-2007 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ cd $tmp || framework_failure=1
mkdir d
touch d/f
chown -R $NON_ROOT_USERNAME d
-chmod u=rwx .
+chmod go= .
if test $framework_failure = 1; then
echo "$0: failure in testing framework" 1>&2