summaryrefslogtreecommitdiff
path: root/lib/acl-internal.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <andreas.gruenbacher@gmail.com>2015-04-12 16:36:38 +0200
committerPádraig Brady <P@draigBrady.com>2015-04-15 23:44:18 +0100
commit2653a3014fe44bb718763655dddb28b2f404ab40 (patch)
tree3bf5c74b9605da20c30791c28e48026b3f6e624e /lib/acl-internal.h
parentda6ebc941e966141e83591408545224274d0cf0f (diff)
downloadgnulib-2653a3014fe44bb718763655dddb28b2f404ab40.tar.gz
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.
Diffstat (limited to 'lib/acl-internal.h')
-rw-r--r--lib/acl-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acl-internal.h b/lib/acl-internal.h
index 243ca32b82..9b9fae2e9e 100644
--- a/lib/acl-internal.h
+++ b/lib/acl-internal.h
@@ -220,7 +220,7 @@ extern int acl_ace_nontrivial (int count, ace_t *entries) _GL_ATTRIBUTE_PURE;
/* Return 1 if the given ACL is non-trivial.
Return 0 if it is trivial, i.e. equivalent to a simple stat() mode. */
-extern int acl_nontrivial (int count, struct acl_entry *entries, struct stat *sb);
+extern int acl_nontrivial (int count, struct acl_entry *entries);
# if HAVE_ACLV_H /* HP-UX >= 11.11 */