diff options
Diffstat (limited to 'tests/rm/inaccessible')
-rwxr-xr-x | tests/rm/inaccessible | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible index 08c5e3245..721210a2a 100755 --- a/tests/rm/inaccessible +++ b/tests/rm/inaccessible @@ -39,7 +39,7 @@ fi pwd=`pwd` t0=`echo "$0"|sed 's,.*/,,'`.tmp; tmp=$t0/$$ -trap 'status=$?; cd $pwd; chmod -R u+rwx $t0; rm -rf $t0 && exit $status' 0 +trap 'status=$?; cd "$pwd" && chmod -R u+rwx $t0 && rm -rf $t0 && exit $status' 0 trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 @@ -56,9 +56,9 @@ fail=0 p=$pwd/$tmp set +x -(cd no-access; chmod 0 . && rm -r $p/abs1 rel $p/abs2) 2> out && fail=1 -test -d $p/abs1 && fail=1 -test -d $p/abs2 && fail=1 +(cd no-access; chmod 0 . && rm -r "$p"/abs1 rel "$p"/abs2) 2> out && fail=1 +test -d "$p"/abs1 && fail=1 +test -d "$p"/abs2 && fail=1 cat <<\EOF > exp || fail=1 rm: cannot remove `rel': Permission denied |