summaryrefslogtreecommitdiff
path: root/tests/chmod
diff options
context:
space:
mode:
Diffstat (limited to 'tests/chmod')
-rwxr-xr-xtests/chmod/c-option17
-rwxr-xr-xtests/chmod/equal-x19
-rwxr-xr-xtests/chmod/equals18
-rwxr-xr-xtests/chmod/no-x17
-rwxr-xr-xtests/chmod/octal17
-rwxr-xr-xtests/chmod/setgid17
-rwxr-xr-xtests/chmod/umask-x17
-rwxr-xr-xtests/chmod/usage17
8 files changed, 139 insertions, 0 deletions
diff --git a/tests/chmod/c-option b/tests/chmod/c-option
index ff5d16e2c..0d73ca895 100755
--- a/tests/chmod/c-option
+++ b/tests/chmod/c-option
@@ -1,6 +1,23 @@
#!/bin/sh
# Verify that chmod's --changes (-c) option works.
+# Copyright (C) 2000, 2004 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/equal-x b/tests/chmod/equal-x
index 7b6fb781b..191f6b6df 100755
--- a/tests/chmod/equal-x
+++ b/tests/chmod/equal-x
@@ -1,4 +1,23 @@
#!/bin/sh
+# Test "chmod =x" and the like.
+
+# Copyright (C) 1999, 2000, 2002, 2004, 2005 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
if test "$VERBOSE" = yes; then
set -x
diff --git a/tests/chmod/equals b/tests/chmod/equals
index a22017eb6..152c0af3f 100755
--- a/tests/chmod/equals
+++ b/tests/chmod/equals
@@ -3,6 +3,24 @@
# 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,
+# 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/no-x b/tests/chmod/no-x
index bdaeb732a..7e5519e4b 100755
--- a/tests/chmod/no-x
+++ b/tests/chmod/no-x
@@ -2,6 +2,23 @@
# Make sure chmod gives the right diagnostic for a readable,
# but inaccessible directory.
+# Copyright (C) 2003, 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/octal b/tests/chmod/octal
index 74b94238b..e6167c69f 100755
--- a/tests/chmod/octal
+++ b/tests/chmod/octal
@@ -1,6 +1,23 @@
#!/bin/sh
# ensure that chmod diagnoses a certain type of invalid mode string
+# Copyright (C) 2005 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/setgid b/tests/chmod/setgid
index 67381fe1a..92068b867 100755
--- a/tests/chmod/setgid
+++ b/tests/chmod/setgid
@@ -2,6 +2,23 @@
# Make sure GNU chmod works the same way as those of Solaris, HPUX, AIX
# wrt directories with the setgid bit set.
+# Copyright (C) 2001, 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/umask-x b/tests/chmod/umask-x
index 6ed95b122..b95d9d588 100755
--- a/tests/chmod/umask-x
+++ b/tests/chmod/umask-x
@@ -1,6 +1,23 @@
#!/bin/sh
# Test that chmod -x file reports an error if the result is executable.
+# Copyright (C) 2005 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version
diff --git a/tests/chmod/usage b/tests/chmod/usage
index 31d0c6f97..eef46668d 100755
--- a/tests/chmod/usage
+++ b/tests/chmod/usage
@@ -1,6 +1,23 @@
#!/bin/sh
# Verify that chmod works correctly with odd option combinations.
+# Copyright (C) 2004, 2005 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
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
if test "$VERBOSE" = yes; then
set -x
chmod --version