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_valid.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_valid.c')
-rw-r--r-- | lib/libc/posix1e/acl_valid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/posix1e/acl_valid.c b/lib/libc/posix1e/acl_valid.c index 602d4d5..69d0f1d 100644 --- a/lib/libc/posix1e/acl_valid.c +++ b/lib/libc/posix1e/acl_valid.c @@ -69,7 +69,7 @@ acl_valid_file(const char *pathp, acl_type_t type, acl_t acl) { int error; - if (acl_posix1e(acl)) { + if (acl_posix1e(acl, type)) { error = acl_sort(acl); if (error) { errno = error; @@ -86,7 +86,7 @@ acl_valid_fd(int fd, acl_type_t type, acl_t acl) { int error; - if (acl_posix1e(acl)) { + if (acl_posix1e(acl, type)) { error = acl_sort(acl); if (error) { errno = error; |