summaryrefslogtreecommitdiff
path: root/tests/mkdir/perm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mkdir/perm')
-rwxr-xr-xtests/mkdir/perm4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mkdir/perm b/tests/mkdir/perm
index 842c881a5..8fdf4b616 100755
--- a/tests/mkdir/perm
+++ b/tests/mkdir/perm
@@ -27,7 +27,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
@@ -35,7 +35,7 @@ framework_failure=0
# Record absolute path of srcdir and cd back to current dir.
cd $srcdir || framework_failure=1
abs_srcdir=`pwd`
-cd $pwd || framework_failure=1
+cd "$pwd" || framework_failure=1
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1