]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't use a umask that removes owner read/write.
authorJim Meyering <jim@meyering.net>
Sat, 20 Oct 2001 14:01:23 +0000 (14:01 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Oct 2001 14:01:23 +0000 (14:01 +0000)
Use a stricter test for permissions.

tests/mv/partition-perm

index 2c709d2771476f558316042047511faef451defa..768436628ebd12e03cef9b4ebd5824d24b3686df 100755 (executable)
@@ -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