acl: Add support for ACLs on NonStop Kernel.
authorBruno Haible <bruno@clisp.org>
Sun, 3 Oct 2010 16:03:48 +0000 (18:03 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 3 Oct 2010 16:03:48 +0000 (18:03 +0200)
commit7c2e36888a6f0d63557fc2b98a8c8f3d3cb73aa3
tree627129ba0c858500cfb12ff618ac8583f2da877a
parent866be158c16d00da1ecd020c28b78a993f2e75dc
acl: Add support for ACLs on NonStop Kernel.

* m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
Check whether the function aclsort() exists.
* lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
(acl_nontrivial) [HAVE_ACLSORT]: New declaration.
* lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
(acl_nontrivial [HAVE_ACLSORT]: New function.
(file_has_acl): Implement for NonStop Kernel.
* lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
(qset_acl): Implement for NonStop Kernel.
* lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
* tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
(main): Implement for NonStop Kernel.
* tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
Kernel. Handle this flavor.
* tests/test-set-mode-acl.sh: Likewise.
* tests/test-copy-acl.sh: Likewise.
* tests/test-copy-file.sh: Likewise.
ChangeLog
lib/acl-internal.h
lib/copy-acl.c
lib/file-has-acl.c
lib/set-mode-acl.c
m4/acl.m4
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