Avoid test failure when run with a permissive umask.
authorJim Meyering <jim@meyering.net>
Thu, 3 May 2007 17:36:34 +0000 (19:36 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 3 May 2007 17:36:34 +0000 (19:36 +0200)
* tests/rm/no-give-up: Set permissions of test directory properly,
i.e., not depending on umask prohibiting go=w.
Reported by AIDA Shinra.

ChangeLog
tests/rm/no-give-up

index 43fd89b..e6a1b4f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-05-03  Jim Meyering  <jim@meyering.net>
+
+       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.
+
 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
 
        The following commands and options now support the standard size
index b85132b..dbd99eb 100755 (executable)
@@ -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