diff options
Diffstat (limited to 'tests/chmod')
-rwxr-xr-x | tests/chmod/c-option | 6 | ||||
-rwxr-xr-x | tests/chmod/equal-x | 4 | ||||
-rwxr-xr-x | tests/chmod/equals | 4 | ||||
-rwxr-xr-x | tests/chmod/inaccessible | 2 | ||||
-rwxr-xr-x | tests/chmod/no-x | 2 | ||||
-rwxr-xr-x | tests/chmod/octal | 4 | ||||
-rwxr-xr-x | tests/chmod/setgid | 2 | ||||
-rwxr-xr-x | tests/chmod/umask-x | 4 | ||||
-rwxr-xr-x | tests/chmod/usage | 4 |
9 files changed, 16 insertions, 16 deletions
diff --git a/tests/chmod/c-option b/tests/chmod/c-option index 0d73ca895..a27165ee4 100755 --- a/tests/chmod/c-option +++ b/tests/chmod/c-option @@ -1,7 +1,7 @@ #!/bin/sh # Verify that chmod's --changes (-c) option works. -# Copyright (C) 2000, 2004 Free Software Foundation, Inc. +# Copyright (C) 2000, 2004, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ fi pwd=`pwd` tmp=c-option.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 @@ -36,7 +36,7 @@ framework_failure=0 cd $srcdir || framework_failure=1 abs_srcdir=`pwd` -cd $pwd || framework_failure=1 +cd "$pwd" || framework_failure=1 mkdir $tmp || framework_failure=1 cd $tmp || framework_failure=1 diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x index 191f6b6df..3e16ce528 100755 --- a/tests/chmod/equal-x +++ b/tests/chmod/equal-x @@ -1,7 +1,7 @@ #!/bin/sh # Test "chmod =x" and the like. -# Copyright (C) 1999, 2000, 2002, 2004, 2005 Free Software Foundation, +# Copyright (C) 1999, 2000, 2002, 2004, 2005, 2006 Free Software Foundation, # Inc. # This program is free software; you can redistribute it and/or modify @@ -26,7 +26,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 diff --git a/tests/chmod/equals b/tests/chmod/equals index 152c0af3f..dfaad17e3 100755 --- a/tests/chmod/equals +++ b/tests/chmod/equals @@ -3,7 +3,7 @@ # Before fileutils-4.1.2, some of them didn't. # Also, before coreutils-5.3.1, =[ugo] sometimes didn't work. -# Copyright (C) 2001, 2002, 2004, 2005 Free Software Foundation, +# Copyright (C) 2001, 2002, 2004, 2005, 2006 Free Software Foundation, # Inc. # This program is free software; you can redistribute it and/or modify @@ -28,7 +28,7 @@ fi pwd=`pwd` tmp=equals.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/chmod/inaccessible b/tests/chmod/inaccessible index 8ff3e60d7..95e91c5b9 100755 --- a/tests/chmod/inaccessible +++ b/tests/chmod/inaccessible @@ -25,7 +25,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 diff --git a/tests/chmod/no-x b/tests/chmod/no-x index 7e5519e4b..b8eed3460 100755 --- a/tests/chmod/no-x +++ b/tests/chmod/no-x @@ -29,7 +29,7 @@ PRIV_CHECK_ARG=require-non-root . $srcdir/../priv-check 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 diff --git a/tests/chmod/octal b/tests/chmod/octal index e6167c69f..b727f8459 100755 --- a/tests/chmod/octal +++ b/tests/chmod/octal @@ -1,7 +1,7 @@ #!/bin/sh # ensure that chmod diagnoses a certain type of invalid mode string -# Copyright (C) 2005 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +25,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 diff --git a/tests/chmod/setgid b/tests/chmod/setgid index 92068b867..d2868f930 100755 --- a/tests/chmod/setgid +++ b/tests/chmod/setgid @@ -29,7 +29,7 @@ fi pwd=`pwd` tmp=setgid.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/chmod/umask-x b/tests/chmod/umask-x index b95d9d588..6bd1e0831 100755 --- a/tests/chmod/umask-x +++ b/tests/chmod/umask-x @@ -1,7 +1,7 @@ #!/bin/sh # Test that chmod -x file reports an error if the result is executable. -# Copyright (C) 2005 Free Software Foundation, Inc. +# Copyright (C) 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,7 +27,7 @@ fi pwd=`pwd` tmp=minus.$$ -trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0 +trap 'status=$?; cd "$pwd" && rm -rf $tmp && exit $status' 0 trap '(exit $?); exit' 1 2 13 15 framework_failure=0 diff --git a/tests/chmod/usage b/tests/chmod/usage index eef46668d..a823063f4 100755 --- a/tests/chmod/usage +++ b/tests/chmod/usage @@ -1,7 +1,7 @@ #!/bin/sh # Verify that chmod works correctly with odd option combinations. -# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -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 |