aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/udf
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2008-10-28 13:44:11 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2008-10-28 13:44:11 +0000
commit15bc6b2bd8d8c56ad74e57675dde8501bc7f53e1 (patch)
treecb5d9bbe34cd6eae2c3dd212bdfdfd85569424dd /sys/fs/udf
parent9215889d21ffb366dda6fcbd62483657769367f2 (diff)
downloadsrc-15bc6b2bd8d8c56ad74e57675dde8501bc7f53e1.tar.gz
src-15bc6b2bd8d8c56ad74e57675dde8501bc7f53e1.zip
Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary
to add more V* constants, and the variables changed by this patch were often being assigned to mode_t variables, which is 16 bit. Approved by: rwatson (mentor)
Notes
Notes: svn path=/head/; revision=184413
Diffstat (limited to 'sys/fs/udf')
-rw-r--r--sys/fs/udf/udf_vnops.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index d468890e7a11..77b11fec9197 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -139,13 +139,14 @@ udf_access(struct vop_access_args *a)
{
struct vnode *vp;
struct udf_node *node;
- mode_t a_mode, mode;
+ accmode_t accmode;
+ mode_t mode;
vp = a->a_vp;
node = VTON(vp);
- a_mode = a->a_mode;
+ accmode = a->a_accmode;
- if (a_mode & VWRITE) {
+ if (accmode & VWRITE) {
switch (vp->v_type) {
case VDIR:
case VLNK:
@@ -160,7 +161,7 @@ udf_access(struct vop_access_args *a)
mode = udf_permtomode(node);
return (vaccess(vp->v_type, mode, node->fentry->uid, node->fentry->gid,
- a_mode, a->a_cred, NULL));
+ accmode, a->a_cred, NULL));
}
static int