From d7740fca42e2f20cbc61230b4a19708313bb2ccf Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Tue, 2 Aug 2016 23:34:58 -0700 Subject: [PATCH] client: call _getattr() with UserPerm in posix checkers Signed-off-by: Greg Farnum --- src/client/Client.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index 345b6f9c352b..5f8659008742 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -12381,8 +12381,7 @@ int Client::_posix_acl_chmod(Inode *in, mode_t mode, const UserPerm& perms) if (acl_type == NO_ACL) return 0; - int r = _getattr(in, CEPH_STAT_CAP_XATTR, perms.uid(), perms.gid(), - in->xattr_version == 0); + int r = _getattr(in, CEPH_STAT_CAP_XATTR, perms, in->xattr_version == 0); if (r < 0) goto out; @@ -12412,7 +12411,7 @@ int Client::_posix_acl_create(Inode *dir, mode_t *mode, bufferlist& xattrs_bl, if (S_ISLNK(*mode)) return 0; - int r = _getattr(dir, CEPH_STAT_CAP_XATTR, perms.uid(), perms.gid(), dir->xattr_version == 0); + int r = _getattr(dir, CEPH_STAT_CAP_XATTR, perms, dir->xattr_version == 0); if (r < 0) goto out; -- 2.47.3