]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't use a umask that removes owner
authorJim Meyering <jim@meyering.net>
Sat, 20 Oct 2001 13:59:57 +0000 (13:59 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 20 Oct 2001 13:59:57 +0000 (13:59 +0000)
read/write.  That induces spurious failures in a probably-old
version of purify.

tests/cp/link-preserve

index 53db11f5a31b0b245b51fb741ddd2bf13dc1bb81..79e355e6d82e7b75794c6421c81ddcc6ab012e21 100755 (executable)
@@ -78,11 +78,11 @@ test "$a_inode" = "$b_inode" || fail=1
 
 # Ensure that --no-preserve=mode works
 rm -rf a b c d
-touch a; chmod 400 a
-umask 777
+touch a; chmod 731 a
+umask 077
 cp -a --no-preserve=mode a b
 set _ `ls -l b`; shift; mode=$1
-test "$mode" = "----------" || fail=1
+test "$mode" = "-rwx------" || fail=1
 umask 022
 # --------------------------------------