diff options
Diffstat (limited to 'tests/mkdir')
-rwxr-xr-x | tests/mkdir/special-1 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/mkdir/special-1 b/tests/mkdir/special-1 new file mode 100755 index 000000000..8b07a4ae5 --- /dev/null +++ b/tests/mkdir/special-1 @@ -0,0 +1,22 @@ +#!/bin/sh +# verify that mkdir honors special bits in MODE + +if test "$VERBOSE" = yes; then + set -x + $mkdir --version +fi + +tmp=mkdir-sp-$$ +trap 'status=$?; rm -rf $tmp && exit $status' 0 +trap 'exit $?' 1 2 13 15 + +mkdir -m2755 $tmp || fail=1 + +test -d $tmp || fail=1 +set -- `ls -ld $tmp` +case "$1" in + drwxr-sr-x) ;; + *) fail=1 ;; +esac + +exit $fail |