aboutsummaryrefslogtreecommitdiff
path: root/bin/cp
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-05-24 10:03:22 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-05-24 10:03:39 +0000
commit1a6a36a98ad5dc86862541b91686b00cf88e9f76 (patch)
tree2937699656373830b51d27c8a707f2e269a82f93 /bin/cp
parent6a97fbe6fcb3f9d413384c6b3594346aebc42e59 (diff)
Diffstat (limited to 'bin/cp')
-rwxr-xr-xbin/cp/tests/cp_test.sh11
1 files changed, 1 insertions, 10 deletions
diff --git a/bin/cp/tests/cp_test.sh b/bin/cp/tests/cp_test.sh
index 29dce783ffe2..bb45cc2484f5 100755
--- a/bin/cp/tests/cp_test.sh
+++ b/bin/cp/tests/cp_test.sh
@@ -563,17 +563,8 @@ dstmode_body()
mkdir -m 0755 dir
echo "foo" >dir/file
umask 0177
- #atf_check cp -R dir dst
-#begin
- # atf-check stupidly refuses to work if the current umask is
- # weird, instead of just dealing with the situation
- cp -R dir dst >stdout 2>stderr
- rc=$?
+ atf_check cp -R dir dst
umask 022
- atf_check_equal 0 $rc
- atf_check cat stdout
- atf_check cat stderr
-#end
atf_check -o inline:"40600\n" stat -f%p dst
atf_check chmod 0750 dst
atf_check cmp dir/file dst/file