summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2011-03-22 17:44:07 +0000
committertrasz <trasz@FreeBSD.org>2011-03-22 17:44:07 +0000
commiteb401e64c176dc676c855607e4a01265f652284e (patch)
tree30276839728661eb968d3996ae79efd3e82389f2 /lib
parent6db2fedb23fb657d8722d216c63d055c7e232d49 (diff)
downloadFreeBSD-src-eb401e64c176dc676c855607e4a01265f652284e.zip
FreeBSD-src-eb401e64c176dc676c855607e4a01265f652284e.tar.gz
Move the code around so that libc behaviour does not depend on a variable
that was supposed to be kernel-only. There should be no functional changes.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/posix1e/acl_strip.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/libc/posix1e/acl_strip.c b/lib/libc/posix1e/acl_strip.c
index c0b0ff3..ae37b38 100644
--- a/lib/libc/posix1e/acl_strip.c
+++ b/lib/libc/posix1e/acl_strip.c
@@ -36,13 +36,12 @@ __FBSDID("$FreeBSD$");
#include "acl_support.h"
/*
- * These three routines from sys/kern/subr_acl_nfs4.c are used by both kernel
+ * These routines from sys/kern/subr_acl_nfs4.c are used by both kernel
* and libc.
*/
-void acl_nfs4_trivial_from_mode(struct acl *aclp, mode_t mode);
-void acl_nfs4_sync_acl_from_mode(struct acl *aclp, mode_t mode,
- int file_owner_id);
void acl_nfs4_sync_mode_from_acl(mode_t *_mode, const struct acl *aclp);
+void acl_nfs4_trivial_from_mode_libc(struct acl *aclp, int file_owner_id,
+ int canonical_six);
static acl_t
_nfs4_acl_strip_np(const acl_t aclp, int canonical_six)
@@ -59,10 +58,7 @@ _nfs4_acl_strip_np(const acl_t aclp, int canonical_six)
_acl_brand_as(newacl, ACL_BRAND_NFS4);
acl_nfs4_sync_mode_from_acl(&mode, &(aclp->ats_acl));
- if (canonical_six)
- acl_nfs4_sync_acl_from_mode(&(newacl->ats_acl), mode, -1);
- else
- acl_nfs4_trivial_from_mode(&(newacl->ats_acl), mode);
+ acl_nfs4_trivial_from_mode_libc(&(newacl->ats_acl), mode, canonical_six);
return (newacl);
}
OpenPOWER on IntegriCloud