diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2000-01-26 04:19:38 +0000 |
| commit | 8f45e8c07611579a6a623ef2201082816c2f39ae (patch) | |
| tree | 3c9c6a2c285edd25bc3bf350bab4af093e85f3aa /lib/libc/posix1e/acl_to_text.c | |
| parent | 2fff585062e948ff849437905d9b51be9658b2b6 (diff) | |
Notes
Diffstat (limited to 'lib/libc/posix1e/acl_to_text.c')
| -rw-r--r-- | lib/libc/posix1e/acl_to_text.c | 15 |
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 566a5073c28f..0dc3058fbff0 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); } - - - - |
