acl: Add support for HP-UX >= 11.11 JFS ACLs.
authorBruno Haible <bruno@clisp.org>
Mon, 13 Jun 2011 00:11:03 +0000 (02:11 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 13 Jun 2011 00:11:03 +0000 (02:11 +0200)
commit227b08bbf68b66e8d7cd4da5c1a6f0ebf5a5d9e8
tree91f3e525a17a538c8e00c635064554f0c2f6469b
parent9cbf59b7fd224f263fce77ef1dadd3be5439fc4f
acl: Add support for HP-UX >= 11.11 JFS ACLs.

* doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
* m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
* lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
(acl, aclsort): New declarations.
(aclv_nontrivial): New declaration.
* lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
(file_has_acl): Read also the second kind of HP-UX ACLs.
* lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
kind of HP-UX ACLs if the first kind fails.
* lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
second kind of HP-UX ACLs.
* tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
(main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
agree.
* tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
hpuxjfs.
Handle hpuxjfs.
* tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
hpuxjfs.
Handle hpuxjfs.
* tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
(func_test_same_acls): Use both lsacl and getacl.
Handle hpuxjfs.
* tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
(func_test_same_acls): Use both lsacl and getacl.
Handle hpuxjfs.
12 files changed:
ChangeLog
doc/acl-resources.txt
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