Use "chmod 0500" rather than "chmod 500".
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Jul 2006 18:38:25 +0000 (18:38 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Jul 2006 18:38:25 +0000 (18:38 +0000)
tests/cp/fail-perm

index 11ac543..dc8b0c4 100755 (executable)
@@ -20,7 +20,7 @@ cd $tmp || framework_failure=1
 mkdir D D/D || framework_failure=1
 touch D/a || framework_failure=1
 chmod 0 D/a || framework_failure=1
-chmod 500 D || framework_failure=1
+chmod 0500 D || framework_failure=1
 
 if test $framework_failure = 1; then
   echo 'failure in testing framework'