summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_to_text.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-01-26 04:19:38 +0000
committerrwatson <rwatson@FreeBSD.org>2000-01-26 04:19:38 +0000
commitbca585a108d2bd5fc957868c934f851e28cc1fdc (patch)
tree9bf727d760779145abf4d333b026744f16082345 /lib/libc/posix1e/acl_to_text.c
parent994e477fcd5e774b309e83aa9a4b9dc634ce39e2 (diff)
downloadFreeBSD-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_to_text.c')
-rw-r--r--lib/libc/posix1e/acl_to_text.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/libc/posix1e/acl_to_text.c b/lib/libc/posix1e/acl_to_text.c
index 566a507..0dc3058 100644
--- a/lib/libc/posix1e/acl_to_text.c
+++ b/lib/libc/posix1e/acl_to_text.c
@@ -40,14 +40,12 @@
#include "acl_support.h"
-
/*
* acl_to_text - generate a text form of an acl
* spec says nothing about output ordering, so leave in acl order
*
- * For the time-being, reject the printing of ACLs that aren't an
- * understood semantic. Later on, we might want to try and have a
- * generic printing mechanism...
+ * This function will not produce nice results if it is called with
+ * a non-POSIX.1e semantics ACL.
*/
char *
acl_to_text(acl_t acl, ssize_t *len_p)
@@ -61,11 +59,6 @@ acl_to_text(acl_t acl, ssize_t *len_p)
acl_tag_t ae_tag;
acl_perm_t ae_perm, effective_perm, mask_perm;
- if (!acl_posix1e(acl)) {
- errno = EINVAL;
- return (0);
- }
-
buf = strdup("");
mask_perm = ACL_PERM_BITS; /* effective is regular if no mask */
@@ -238,7 +231,3 @@ error_label:
if (buf) free(buf);
return (0);
}
-
-
-
-
OpenPOWER on IntegriCloud