aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_acl.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_acl.c')
-rw-r--r--fs/xfs/xfs_acl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_acl.c b/fs/xfs/xfs_acl.c
index 1b440f37371c..5bfb66f33caf 100644
--- a/fs/xfs/xfs_acl.c
+++ b/fs/xfs/xfs_acl.c
@@ -704,7 +704,7 @@ xfs_acl_vtoacl(
704int 704int
705xfs_acl_inherit( 705xfs_acl_inherit(
706 bhv_vnode_t *vp, 706 bhv_vnode_t *vp,
707 bhv_vattr_t *vap, 707 mode_t mode,
708 xfs_acl_t *pdaclp) 708 xfs_acl_t *pdaclp)
709{ 709{
710 xfs_acl_t *cacl; 710 xfs_acl_t *cacl;
@@ -732,7 +732,7 @@ xfs_acl_inherit(
732 return ENOMEM; 732 return ENOMEM;
733 733
734 memcpy(cacl, pdaclp, sizeof(xfs_acl_t)); 734 memcpy(cacl, pdaclp, sizeof(xfs_acl_t));
735 xfs_acl_filter_mode(vap->va_mode, cacl); 735 xfs_acl_filter_mode(mode, cacl);
736 xfs_acl_setmode(vp, cacl, &basicperms); 736 xfs_acl_setmode(vp, cacl, &basicperms);
737 737
738 /* 738 /*