diff options
author | Jim Meyering <jim@meyering.net> | 2000-11-11 13:34:51 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-11-11 13:34:51 +0000 |
commit | fc27d7356d7158fc50aea4d5e5ab894212d6e27c (patch) | |
tree | 4d8de93a8b012d55e87615904d0e37bb513712b7 | |
parent | 427694451d6bfff58158ad72c165e6cd0d6b18c3 (diff) | |
download | coreutils-fc27d7356d7158fc50aea4d5e5ab894212d6e27c.tar.xz |
(tests): Use `empty' (instead of just blanks) to
indicate no `-m' option. Using just blanks wasn't portable to
Solaris2.5.1's /bin/sh.
-rwxr-xr-x | tests/mkdir/perm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/mkdir/perm b/tests/mkdir/perm index 5e963a51d..83dc70c42 100755 --- a/tests/mkdir/perm +++ b/tests/mkdir/perm @@ -9,7 +9,7 @@ fi pwd=`pwd` tmp=perm.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd $pwd; chmod -R u+rwx $tmp; rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 @@ -26,12 +26,12 @@ fail=0 # parent parent/dir # umask -m option resulting perm resulting perm tests=' - 000 : : drwxrwxrwx : drwxrwxrwx : + 000 : empty : drwxrwxrwx : drwxrwxrwx : 000 : -m 016 : drwxrwxrwx : d-----xrw- : - 077 : : drwx------ : drwx------ : - 050 : : drwx-w-rwx : drwx-w-rwx : + 077 : empty : drwx------ : drwx------ : + 050 : empty : drwx-w-rwx : drwx-w-rwx : 050 : -m 312 : drwx-w-rwx : d-wx--x-w- : - 160 : : drwx--xrwx : drw---xrwx : + 160 : empty : drwx--xrwx : drw---xrwx : 160 : -m 743 : drwx--xrwx : drwxr---wx : - : - : last : last : ' @@ -46,6 +46,7 @@ for p in empty -p; do while :; do test "$VERBOSE" = yes && set -x umask=$1 mode=$2 parent_perms=$3 sub_perms=$4 + test "_$mode" = _empty && mode= test $sub_perms = last && break # echo p=$p umask=$1 mode=$2 parent_perms=$3 sub_perms=$4 shift; shift; shift; shift |