summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/acl_get.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2009-05-22 15:56:43 +0000
committertrasz <trasz@FreeBSD.org>2009-05-22 15:56:43 +0000
commitfb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26 (patch)
treec4c23f9c8441dec7c3000e786fd64356cf1e6e07 /lib/libc/posix1e/acl_get.c
parent22a2faaf8a380ef584515e66ff4136bf512c6e21 (diff)
downloadFreeBSD-src-fb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26.zip
FreeBSD-src-fb57d2691e61eb7ee2ab8df2ee9f41842c5f1a26.tar.gz
Make 'struct acl' larger, as required to support NFSv4 ACLs. Provide
compatibility interfaces in both kernel and libc. Reviewed by: rwatson
Diffstat (limited to 'lib/libc/posix1e/acl_get.c')
-rw-r--r--lib/libc/posix1e/acl_get.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc/posix1e/acl_get.c b/lib/libc/posix1e/acl_get.c
index 1f97baa..6c98fe9 100644
--- a/lib/libc/posix1e/acl_get.c
+++ b/lib/libc/posix1e/acl_get.c
@@ -50,6 +50,8 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <string.h>
+#include "acl_support.h"
+
acl_t
acl_get_file(const char *path_p, acl_type_t type)
{
@@ -60,6 +62,7 @@ acl_get_file(const char *path_p, acl_type_t type)
if (aclp == NULL)
return (NULL);
+ type = _acl_type_unold(type);
error = __acl_get_file(path_p, type, &aclp->ats_acl);
if (error) {
acl_free(aclp);
@@ -79,6 +82,7 @@ acl_get_link_np(const char *path_p, acl_type_t type)
if (aclp == NULL)
return (NULL);
+ type = _acl_type_unold(type);
error = __acl_get_link(path_p, type, &aclp->ats_acl);
if (error) {
acl_free(aclp);
@@ -117,6 +121,7 @@ acl_get_fd_np(int fd, acl_type_t type)
if (aclp == NULL)
return (NULL);
+ type = _acl_type_unold(type);
error = ___acl_get_fd(fd, type, &aclp->ats_acl);
if (error) {
acl_free(aclp);
OpenPOWER on IntegriCloud