summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorNoah Massey <noah.massey@gmail.com>2014-01-30 21:31:12 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2014-01-31 20:36:07 -0500
commit718360c59f34b80d9878429300c1c688f7c2031d (patch)
tree498355f6b0b096f46d6a55fe2e9f1abf8c2ef249 /fs/nfs
parent8a1f006ad302ea178aefb1f8c67e679c696289e9 (diff)
downloadlinux-718360c59f34b80d9878429300c1c688f7c2031d.tar.gz
linux-718360c59f34b80d9878429300c1c688f7c2031d.tar.bz2
linux-718360c59f34b80d9878429300c1c688f7c2031d.zip
nfs: fix setting of ACLs on file creation.
nfs3_get_acl() tries to skip posix equivalent ACLs, but misinterprets the return value of posix_acl_equiv_mode(). Fix it. This is a regression introduced by "nfs: use generic posix ACL infrastructure for v3 Posix ACLs" CC: Christoph Hellwig <hch@infradead.org> CC: linux-nfs@vger.kernel.org CC: linux-fsdevel@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs3acl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs3acl.c b/fs/nfs/nfs3acl.c
index 9a5ca03fa539..0851f852568d 100644
--- a/fs/nfs/nfs3acl.c
+++ b/fs/nfs/nfs3acl.c
@@ -80,7 +80,7 @@ struct posix_acl *nfs3_get_acl(struct inode *inode, int type)
}
if (res.acl_access != NULL) {
- if (posix_acl_equiv_mode(res.acl_access, NULL) ||
+ if ((posix_acl_equiv_mode(res.acl_access, NULL) == 0) ||
res.acl_access->a_count == 0) {
posix_acl_release(res.acl_access);
res.acl_access = NULL;