From 9b3420214193492987daf0ec08fc2dda7a1606ce Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 22 Oct 2006 22:12:13 +0200 Subject: [PATCH] * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'. * tests/cp/cp-parents: Likewise. * tests/mkdir/parents: Likewise. * tests/mkdir/perm: Likewise. --- ChangeLog | 5 +++++ tests/chmod/c-option | 2 +- tests/cp/cp-parents | 2 +- tests/mkdir/parents | 6 +++--- tests/mkdir/perm | 4 ++-- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1919b833e3..048a25f51e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2006-10-22 Ralf Wildenhues + * tests/chmod/c-option: Double-quote instances of `$abs_srcdir'. + * tests/cp/cp-parents: Likewise. + * tests/mkdir/parents: Likewise. + * tests/mkdir/perm: Likewise. + * tests/sample-test: Quote variables containing absolute build tree paths. In the cleanup trap, make sure `cd' succeeds before `chmod'ing and `rm'ing the temporary files. diff --git a/tests/chmod/c-option b/tests/chmod/c-option index a27165ee45..0b116c46a3 100755 --- a/tests/chmod/c-option +++ b/tests/chmod/c-option @@ -50,7 +50,7 @@ if test $framework_failure = 1; then (exit 1); exit 1 fi -. $abs_srcdir/../setgid-check +. "$abs_srcdir"/../setgid-check fail=0 diff --git a/tests/cp/cp-parents b/tests/cp/cp-parents index fd3e1fcb77..c689215381 100755 --- a/tests/cp/cp-parents +++ b/tests/cp/cp-parents @@ -44,7 +44,7 @@ cd "$pwd" || framework_failure=1 mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 -. $abs_srcdir/../setgid-check +. "$abs_srcdir"/../setgid-check mkdir foo bar || framework_failure=1 mkdir -p a/b/c d e || framework_failure=1 diff --git a/tests/mkdir/parents b/tests/mkdir/parents index 477ac59373..46977fcdcc 100755 --- a/tests/mkdir/parents +++ b/tests/mkdir/parents @@ -44,7 +44,7 @@ if test $framework_failure = 1; then (exit 1); exit 1 fi -. $abs_srcdir/../setgid-check +. "$abs_srcdir"/../setgid-check fail=0 @@ -56,12 +56,12 @@ mkdir e-dir > /dev/null 2>&1 && fail=1 # Create an existing directory. umask 077 mode_str=drwxr-x-wx -mode_arg=`$abs_srcdir/../rwx-to-mode $mode_str` +mode_arg=`"$abs_srcdir"/../rwx-to-mode $mode_str` mkdir -m $mode_arg a || fail=1 # this `mkdir -p ...' shouldn't change perms of existing dir `a'. d_mode_str=drwx-w--wx -d_mode_arg=`$abs_srcdir/../rwx-to-mode $d_mode_str` +d_mode_arg=`"$abs_srcdir"/../rwx-to-mode $d_mode_str` mkdir -p -m $d_mode_arg a/b/c/d # Make sure the permissions of `a' haven't been changed. diff --git a/tests/mkdir/perm b/tests/mkdir/perm index 8fdf4b6160..54838088ca 100755 --- a/tests/mkdir/perm +++ b/tests/mkdir/perm @@ -45,8 +45,8 @@ if test $framework_failure = 1; then (exit 1); exit 1 fi -. $abs_srcdir/../setgid-check -. $abs_srcdir/../umask-check +. "$abs_srcdir"/../setgid-check +. "$abs_srcdir"/../umask-check fail=0 -- 2.47.3