From 54a8b24b6ef0133a714102f69875991e435307d3 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 Oct 2001 14:01:23 +0000 Subject: Don't use a umask that removes owner read/write. Use a stricter test for permissions. --- tests/mv/partition-perm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/mv/partition-perm') diff --git a/tests/mv/partition-perm b/tests/mv/partition-perm index 2c709d277..768436628 100755 --- a/tests/mv/partition-perm +++ b/tests/mv/partition-perm @@ -24,7 +24,7 @@ cd $dir : > file chmod a=rwx file -umask 777 +umask 077 mv file $other_partition_tmpdir fail=0 @@ -32,6 +32,7 @@ test -f file && fail=1 test -f $other_partition_tmpdir/file || fail=1 # This would have failed with the mv from fileutils-4.0i. -test -r $other_partition_tmpdir/file || fail=1 +set _ `ls -l $other_partition_tmpdir/file`; shift; mode=$1 +test "$mode" = "-rwxrwxrwx" || fail=1 exit $fail -- cgit v1.2.3-54-g00ecf