[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cp-parents test and ACLs

From: Kevin Mudrick
Subject: cp-parents test and ACLs
Date: Tue, 21 Jun 2005 13:18:34 -0400

The "cp-parents" test fails when local filesystem ACLs override umask.  
However, chmod still works fine.  Since the test seems to be checking whether 
the permissions are maintained when using "cp -a", chmod seems to be an 
alternate approach.  

--- coreutils-5.2.1/tests/cp/cp-parents 2002-10-08 05:20:06.000000000 -0400
+++ coreutils-5.2.1-patched/tests/cp/cp-parents 2005-06-21 11:14:58.701351000 
@@ -31,6 +31,10 @@
 mkdir foo bar || framework_failure=1
 mkdir -p a/b/c d e || framework_failure=1
+# umask can fail to set correctly on systems with ACLs
+# chmod, on the other hand, works
+chmod 755 a a/b a/b/c d e
 if test $framework_failure = 1; then
   echo 'failure in testing framework'
   exit 1

reply via email to

[Prev in Thread] Current Thread [Next in Thread]