summaryrefslogtreecommitdiff
path: root/tests/cp/existing-perm-dir
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cp/existing-perm-dir')
-rwxr-xr-xtests/cp/existing-perm-dir2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/cp/existing-perm-dir b/tests/cp/existing-perm-dir
index 6ef73f0a0..a8c281669 100755
--- a/tests/cp/existing-perm-dir
+++ b/tests/cp/existing-perm-dir
@@ -25,7 +25,7 @@ mkdir -p -m ug-s,u=rwx,g=,o= dst/dir || fail=1
cp -r src/. dst/ || fail=1
-mode=`ls -ld dst/dir | cut -b-10`
+mode=$(stat --p=%A dst/dir)
test "$mode" = drwx------ || fail=1
Exit $fail