* tests/test-file-has-acl.sh: Remove code for IRIX 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-10 Bruno Haible <bruno@clisp.org>
+
+ acl, file-has-acl, copy-file tests: Remove support for IRIX.
+ * tests/test-file-has-acl.sh: Remove code for IRIX 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-10 Paul Eggert <eggert@cs.ucla.edu>
regex: pacify gcc 15.2
# Classification of the platform according to the programs available for
# manipulating ACLs.
# Possible values are:
- # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
+ # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, none.
# TODO: Support also native Windows platforms (mingw).
acl_flavor=none
if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
else
if (lsacl / >/dev/null) 2>/dev/null; then
# Platforms with the lsacl and chacl programs.
- # HP-UX, sometimes also IRIX.
+ # HP-UX.
if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
# HP-UX 11.11 or newer.
acl_flavor=hpuxjfs
if (fsaclctl -v >/dev/null) 2>/dev/null; then
# Mac OS X.
acl_flavor=macosx
- else
- if test -f /sbin/chacl; then
- # IRIX.
- acl_flavor=irix
- fi
fi
fi
fi
cmp tmpaclout1 tmpaclout2 > /dev/null
}
;;
- irix)
- func_test_same_acls ()
- {
- /bin/ls -lD "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
- /bin/ls -lD "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2
- cmp tmpaclout1 tmpaclout2 > /dev/null
- }
- ;;
none)
func_test_same_acls ()
{
;;
- irix)
-
- # Set an ACL for a user.
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0
-
- func_test_copy tmpfile0 tmpfile2
-
- # Set an ACL for a group.
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x,group:$agid:r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile3
-
- # Set an ACL for other.
- /sbin/chacl user::rw-,group::---,user:$auid:--x,group:$agid:r--,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile4
-
- # Remove the ACL for the user.
- /sbin/chacl user::rw-,group::---,group:$agid:r--,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile5
-
- # Remove the ACL for the group.
- /sbin/chacl user::rw-,group::---,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile7
-
- ;;
-
esac
fi
# Classification of the platform according to the programs available for
# manipulating ACLs.
# Possible values are:
- # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
+ # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, none.
# TODO: Support also native Windows platforms (mingw).
acl_flavor=none
if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
else
if (lsacl / >/dev/null) 2>/dev/null; then
# Platforms with the lsacl and chacl programs.
- # HP-UX, sometimes also IRIX.
+ # HP-UX.
if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
# HP-UX 11.11 or newer.
acl_flavor=hpuxjfs
if (fsaclctl -v >/dev/null) 2>/dev/null; then
# Mac OS X.
acl_flavor=macosx
- else
- if test -f /sbin/chacl; then
- # IRIX.
- acl_flavor=irix
- fi
fi
fi
fi
cmp tmpaclout1 tmpaclout2 > /dev/null
}
;;
- irix)
- func_test_same_acls ()
- {
- /bin/ls -lD "$1" | sed -e "s/$1/FILENAME/g" > tmpaclout1
- /bin/ls -lD "$2" | sed -e "s/$2/FILENAME/g" > tmpaclout2
- cmp tmpaclout1 tmpaclout2 > /dev/null
- }
- ;;
none)
func_test_same_acls ()
{
;;
- irix)
-
- # Set an ACL for a user.
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0
-
- func_test_copy tmpfile0 tmpfile2
-
- # Set an ACL for a group.
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x,group:$agid:r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile3
-
- # Set an ACL for other.
- /sbin/chacl user::rw-,group::---,user:$auid:--x,group:$agid:r--,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile4
-
- # Remove the ACL for the user.
- /sbin/chacl user::rw-,group::---,group:$agid:r--,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile5
-
- # Remove the ACL for the group.
- /sbin/chacl user::rw-,group::---,other::r-- tmpfile0
-
- func_test_copy tmpfile0 tmpfile7
-
- ;;
-
esac
fi
# Classification of the platform according to the programs available for
# manipulating ACLs.
# Possible values are:
- # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, irix, none.
+ # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, none.
# TODO: Support also native Windows platforms (mingw).
acl_flavor=none
if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
else
if (lsacl / >/dev/null) 2>/dev/null; then
# Platforms with the lsacl and chacl programs.
- # HP-UX, sometimes also IRIX.
+ # HP-UX.
if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
# HP-UX 11.11 or newer.
acl_flavor=hpuxjfs
if (fsaclctl -v >/dev/null) 2>/dev/null; then
# Mac OS X.
acl_flavor=macosx
- else
- if test -f /sbin/chacl; then
- # IRIX.
- acl_flavor=irix
- fi
fi
fi
fi
esac
}
;;
- irix)
- func_test_has_acl ()
- {
- func_test_file_has_acl "$1" "$2"
- case `/bin/ls -ldD "$1" | sed 1q` in
- *" []")
- test "$2" = no || {
- echo "/bin/ls -ldD $1 shows no ACL, but expected $2" 1>&2
- exit 1
- }
- ;;
- *)
- test "$2" = yes || {
- echo "/bin/ls -ldD $1 shows an ACL, but expected $2" 1>&2
- exit 1
- }
- ;;
- esac
- }
- ;;
*)
func_test_has_acl ()
{
;;
- irix)
-
- # Set an ACL for a user.
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0 2> tmp.err
- cat tmp.err 1>&2
- if test -s tmp.err; then :; else
-
- func_test_has_acl tmpfile0 yes
-
- # Remove the ACL for the user.
- /sbin/chacl user::rw-,group::---,other::--- tmpfile0
-
- func_test_has_acl tmpfile0 no
-
- fi
- ;;
-
esac
fi
}
}
{
-#if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X, IRIX */
+#if HAVE_ACL_GET_FILE /* Linux, FreeBSD, Mac OS X */
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, aix, macosx, irix, none.
+ # linux, cygwin, freebsd, solaris, hpux, hpuxjfs, aix, macosx, none.
# TODO: Support also native Windows platforms (mingw).
acl_flavor=none
if (getfacl tmpfile0 >/dev/null) 2>/dev/null; then
else
if (lsacl / >/dev/null) 2>/dev/null; then
# Platforms with the lsacl and chacl programs.
- # HP-UX, sometimes also IRIX.
+ # HP-UX.
if (getacl tmpfile0 >/dev/null) 2>/dev/null; then
# HP-UX 11.11 or newer.
acl_flavor=hpuxjfs
if (fsaclctl -v >/dev/null) 2>/dev/null; then
# Mac OS X.
acl_flavor=macosx
- else
- if test -f /sbin/chacl; then
- # IRIX.
- acl_flavor=irix
- fi
fi
fi
fi
macosx)
/bin/chmod +a "user:daemon allow execute" tmpfile0
;;
- irix)
- /sbin/chacl user::rw-,group::---,other::---,user:$auid:--x tmpfile0
- ;;
esac
# Try to set the ACL to only the given mode.