diff options
author | rwatson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
commit | bca585a108d2bd5fc957868c934f851e28cc1fdc (patch) | |
tree | 9bf727d760779145abf4d333b026744f16082345 /lib/libc/posix1e/acl_calc_mask.c | |
parent | 994e477fcd5e774b309e83aa9a4b9dc634ce39e2 (diff) | |
download | FreeBSD-src-bca585a108d2bd5fc957868c934f851e28cc1fdc.zip FreeBSD-src-bca585a108d2bd5fc957868c934f851e28cc1fdc.tar.gz |
Minor fixes to library interface to improve POSIX.1e compliance. This
adds _np to a couple of function prototypes that provided more broad/useful
interfaces than POSIX.1e interfaces included.
Also, move from using a heuristic to identify POSIX.1e-semantic ACLs to
using different ACL types for non-POSIX.1e ACLs. This should clean up the
existing fuzzy logic that determined when acl_sort() should be applied
before kernel submission.
Diffstat (limited to 'lib/libc/posix1e/acl_calc_mask.c')
-rw-r--r-- | lib/libc/posix1e/acl_calc_mask.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libc/posix1e/acl_calc_mask.c b/lib/libc/posix1e/acl_calc_mask.c index 30ea02e..ff7b1ac 100644 --- a/lib/libc/posix1e/acl_calc_mask.c +++ b/lib/libc/posix1e/acl_calc_mask.c @@ -41,7 +41,7 @@ * * acl_calc_mask(): calculate an ACL_MASK entry for the ACL, then either * insert into the ACL if there is none already, or replace the existing - * one. + * one. This will act up if called on a non-POSIX.1e semantics ACL. */ int acl_calc_mask(acl_t *acl_p) @@ -51,9 +51,6 @@ acl_calc_mask(acl_t *acl_p) int mask_entry = -1; int i; - if (!acl_posix1e(acl)) - return (0); - /* search for ACL_MASK */ for (i = 0; i < acl->acl_cnt; i++) if (acl->acl_entry[i].ae_tag == ACL_MASK) |