]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
acl, file-has-acl, copy-file tests: Remove support for OSF/1.
authorBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:37:03 +0000 (12:37 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 9 Sep 2025 10:37:03 +0000 (12:37 +0200)
* tests/test-file-has-acl.sh: Remove code for OSF/1 ACLs.
* tests/test-set-mode-acl.sh: Likewise.
* tests/test-copy-acl.sh: Likewise.
* tests/test-copy-file.sh: Likewise.
* tests/test-sameacls.c: Update comment.

ChangeLog
tests/test-copy-acl.sh
tests/test-copy-file.sh
tests/test-file-has-acl.sh
tests/test-sameacls.c
tests/test-set-mode-acl.sh

index 26fc6bb24c9113fd18150815482430815704cd71..382f66b9d063990f1e3a50a409dd064738a24061 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2025-09-09  Bruno Haible  <bruno@clisp.org>
+
+       acl, file-has-acl, copy-file tests: Remove support for OSF/1.
+       * tests/test-file-has-acl.sh: Remove code for OSF/1 ACLs.
+       * tests/test-set-mode-acl.sh: Likewise.
+       * tests/test-copy-acl.sh: Likewise.
+       * tests/test-copy-file.sh: Likewise.
+       * tests/test-sameacls.c: Update comment.
+
 2025-09-08  Bruno Haible  <bruno@clisp.org>
 
        stdcountof-h: Add support for C++ compilers that lack _Countof.
index 061755f1241db7ac6f7fc1543ddd4ea56c70d2a5..19d6d7763cb8d4ae5f542862d55407e65a688870 100755 (executable)
@@ -65,7 +65,7 @@ cd "$builddir" ||
   # Classification of the platform according to the programs available for
   # manipulating ACLs.
   # Possible values are:
-  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, osf1, aix, macosx, irix, none.
+  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
   # TODO: Support also native Windows platforms (mingw).
   acl_flavor=none
   if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
@@ -102,14 +102,8 @@ cd "$builddir" ||
       fi
     else
       if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
-        # Tru64, NonStop Kernel.
-        if (getacl -m tmpfile0 >/dev/null) 2>/dev/null; then
-          # Tru64.
-          acl_flavor=osf1
-        else
-          # NonStop Kernel.
-          acl_flavor=nsk
-        fi
+        # NonStop Kernel.
+        acl_flavor=nsk
       else
         if (aclget tmpfile0 >/dev/null) 2>/dev/null; then
           # AIX.
@@ -162,7 +156,7 @@ cd "$builddir" ||
         }
       }
       ;;
-    osf1 | nsk)
+    nsk)
       func_test_same_acls ()
       {
         getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
@@ -448,57 +442,6 @@ cd "$builddir" ||
 
         ;;
 
-      osf1)
-
-        # Set an ACL for a user.
-        setacl -u user:$auid:1 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile2
-
-        # Set an ACL for a group.
-        setacl -u group:$agid:4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile3
-
-        # Set an ACL for other.
-        setacl -u other::4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile4
-
-        # Remove the ACL for the user.
-        setacl -x user:$auid:1 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile5
-
-        if false; then # would give an error "can't set ACL: Invalid argument"
-          # Remove the ACL for other.
-          setacl -x other::4 tmpfile0
-
-          func_test_copy tmpfile0 tmpfile6
-        fi
-
-        # Remove the ACL for the group.
-        setacl -x group:$agid:4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile7
-
-        # Delete all optional ACLs.
-        setacl -u user:$auid:1 tmpfile0
-        setacl -b tmpfile0
-
-        func_test_copy tmpfile0 tmpfile8
-
-        # Copy ACLs from a file that has no ACLs.
-        echo > tmpfile9
-        chmod a+x tmpfile9
-        getacl tmpfile9 > tmpaclout0
-        setacl -b -U tmpaclout0 tmpfile0
-        rm -f tmpfile9
-
-        func_test_copy tmpfile0 tmpfile9
-
-        ;;
-
       nsk)
 
         # Set an ACL for a user.
index 9cd9e2093d6952bb0e1e2e67159f181f34c9ba92..1283af77908c9a702e799b4faa401c4477df10df 100755 (executable)
@@ -59,7 +59,7 @@ cd "$builddir" ||
   # Classification of the platform according to the programs available for
   # manipulating ACLs.
   # Possible values are:
-  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, osf1, aix, macosx, irix, none.
+  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
   # TODO: Support also native Windows platforms (mingw).
   acl_flavor=none
   if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
@@ -96,14 +96,8 @@ cd "$builddir" ||
       fi
     else
       if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
-        # Tru64, NonStop Kernel.
-        if (getacl -m tmpfile0 >/dev/null) 2>/dev/null; then
-          # Tru64.
-          acl_flavor=osf1
-        else
-          # NonStop Kernel.
-          acl_flavor=nsk
-        fi
+        # NonStop Kernel.
+        acl_flavor=nsk
       else
         if (aclget tmpfile0 >/dev/null) 2>/dev/null; then
           # AIX.
@@ -156,7 +150,7 @@ cd "$builddir" ||
         }
       }
       ;;
-    osf1 | nsk)
+    nsk)
       func_test_same_acls ()
       {
         getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
@@ -440,57 +434,6 @@ cd "$builddir" ||
 
         ;;
 
-      osf1)
-
-        # Set an ACL for a user.
-        setacl -u user:$auid:1 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile2
-
-        # Set an ACL for a group.
-        setacl -u group:$agid:4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile3
-
-        # Set an ACL for other.
-        setacl -u other::4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile4
-
-        # Remove the ACL for the user.
-        setacl -x user:$auid:1 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile5
-
-        if false; then # would give an error "can't set ACL: Invalid argument"
-          # Remove the ACL for other.
-          setacl -x other::4 tmpfile0
-
-          func_test_copy tmpfile0 tmpfile6
-        fi
-
-        # Remove the ACL for the group.
-        setacl -x group:$agid:4 tmpfile0
-
-        func_test_copy tmpfile0 tmpfile7
-
-        # Delete all optional ACLs.
-        setacl -u user:$auid:1 tmpfile0
-        setacl -b tmpfile0
-
-        func_test_copy tmpfile0 tmpfile8
-
-        # Copy ACLs from a file that has no ACLs.
-        echo > tmpfile9
-        chmod a+x tmpfile9
-        getacl tmpfile9 > tmpaclout0
-        setacl -b -U tmpaclout0 tmpfile0
-        rm -f tmpfile9
-
-        func_test_copy tmpfile0 tmpfile9
-
-        ;;
-
       nsk)
 
         # Set an ACL for a user.
index 1ce388bbc084a8a0fd3a70438db39546422b9851..76391ee6c7361d9a0ca29895e9a1a72418fbe88a 100755 (executable)
@@ -65,7 +65,7 @@ cd "$builddir" ||
   # Classification of the platform according to the programs available for
   # manipulating ACLs.
   # Possible values are:
-  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, osf1, aix, macosx, irix, none.
+  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
   # TODO: Support also native Windows platforms (mingw).
   acl_flavor=none
   if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
@@ -102,14 +102,8 @@ cd "$builddir" ||
       fi
     else
       if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
-        # Tru64, NonStop Kernel.
-        if (getacl -m tmpfile0 >/dev/null) 2>/dev/null; then
-          # Tru64.
-          acl_flavor=osf1
-        else
-          # NonStop Kernel.
-          acl_flavor=nsk
-        fi
+        # NonStop Kernel.
+        acl_flavor=nsk
       else
         if (aclget tmpfile0 >/dev/null) 2>/dev/null; then
           # AIX.
@@ -299,26 +293,6 @@ cd "$builddir" ||
         fi
         ;;
 
-      osf1)
-
-        # Set an ACL for a user.
-        setacl -u user:$auid:1 tmpfile0 2> tmp.err
-        cat tmp.err 1>&2
-        if grep 'Error:' tmp.err > /dev/null \
-           || grep 'Operation not supported' tmp.err > /dev/null; then
-          :
-        else
-
-          func_test_has_acl tmpfile0 yes
-
-          # Remove the ACL for the user.
-          setacl -x user:$auid:1 tmpfile0
-
-          func_test_has_acl tmpfile0 no
-
-        fi
-        ;;
-
       nsk)
 
         # Set an ACL for a user.
index 05dca507e9c0b43589b11101744a9aeba5338e18..688a267e43eba396f8276c345f67c911a8e8d7e3 100644 (file)
@@ -115,7 +115,7 @@ main (int argc, char *argv[])
       }
   }
   {
-#if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX, Tru64 */
+#if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX */
     static const int types[] =
       {
         ACL_TYPE_ACCESS
index 18eb72acf88844e1ea03a48c68da726bf7bbe2cf..6d103fb9a3a07aaa89078a28a61c6090708074e5 100755 (executable)
@@ -65,7 +65,7 @@ cd "$builddir" ||
   # Classification of the platform according to the programs available for
   # manipulating ACLs.
   # Possible values are:
-  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, osf1, aix, macosx, irix, none.
+  #   linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
   # TODO: Support also native Windows platforms (mingw).
   acl_flavor=none
   if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
@@ -102,14 +102,8 @@ cd "$builddir" ||
       fi
     else
       if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
-        # Tru64, NonStop Kernel.
-        if (getacl -m tmpfile0 >/dev/null) 2>/dev/null; then
-          # Tru64.
-          acl_flavor=osf1
-        else
-          # NonStop Kernel.
-          acl_flavor=nsk
-        fi
+        # NonStop Kernel.
+        acl_flavor=nsk
       else
         if (aclget tmpfile0 >/dev/null) 2>/dev/null; then
           # AIX.
@@ -196,9 +190,6 @@ cd "$builddir" ||
             chacl -r "${orig}($auid.%,--x)" tmpfile0 \
               || setacl -m user:$auid:1 tmpfile0
             ;;
-          osf1)
-            setacl -u user:$auid:1 tmpfile0
-            ;;
           nsk)
             setacl -m user:$auid:1 tmpfile0
             ;;