From: Jim Meyering Date: Sat, 20 Oct 2001 13:59:57 +0000 (+0000) Subject: Don't use a umask that removes owner X-Git-Tag: FILEUTILS-4_1_1~108 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f2d0d9bda9e6338bd94fca51e03a27c84f8e27b9;p=thirdparty%2Fcoreutils.git Don't use a umask that removes owner read/write. That induces spurious failures in a probably-old version of purify. --- diff --git a/tests/cp/link-preserve b/tests/cp/link-preserve index 53db11f5a3..79e355e6d8 100755 --- a/tests/cp/link-preserve +++ b/tests/cp/link-preserve @@ -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 # --------------------------------------