]> Savannah Git Hosting - gnulib.git/commit
qacl: Simplify HP-UX acl_nontrivial check
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>
Sun, 12 Apr 2015 14:36:38 +0000 (16:36 +0200)
committerPádraig Brady <P@draigBrady.com>
Wed, 15 Apr 2015 22:44:18 +0000 (23:44 +0100)
commit2653a3014fe44bb718763655dddb28b2f404ab40
tree3bf5c74b9605da20c30791c28e48026b3f6e624e
parentda6ebc941e966141e83591408545224274d0cf0f
qacl: Simplify HP-UX acl_nontrivial check

* lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
acl_nontrivial. Check if the acl has at most three entries instead (it must
have exactly three entries according to the HP-UX documentation). Ignore
uids and gids as long as an entry is either for a user (i.e., the owner),
a group (i.e., the owning group), or others.
* lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
* lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the source
file.
ChangeLog
lib/acl-internal.c
lib/acl-internal.h
lib/qcopy-acl.c