* 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-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.
# 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
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.
}
}
;;
- osf1 | nsk)
+ nsk)
func_test_same_acls ()
{
getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
;;
- 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.
# 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
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.
}
}
;;
- osf1 | nsk)
+ nsk)
func_test_same_acls ()
{
getacl "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
;;
- 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.
# 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
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.
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.
}
}
{
-#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
# 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
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.
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
;;