diff options
author | Jim Meyering <jim@meyering.net> | 2000-04-27 06:30:59 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-04-27 06:30:59 +0000 |
commit | 758eab108f109be07b74c16d1c23c79111111bc9 (patch) | |
tree | 35418600f41d82314a71f1e8018f70212d0c2e4c /tests/mkdir | |
parent | 862b31c48a3aa016efbd2728abf38993917bf96e (diff) | |
download | coreutils-758eab108f109be07b74c16d1c23c79111111bc9.tar.xz |
*** empty log message ***
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 |