NFSv3: Fix another acl regression
authorTrond Myklebust <trond.myklebust@primarydata.com>
Sun, 24 Aug 2014 18:46:48 +0000 (14:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Sep 2014 23:34:18 +0000 (16:34 -0700)
commit862fd32cef8b6d2c1365245f38d631fb838ea90b
tree0015de1ca4d264b5969e4d4532dafbd127430379
parent96a93162e29169cb7cd5b0343953b6e41b260b1f
NFSv3: Fix another acl regression

commit f87d928f6d98644d39809a013a22f981d39017cf upstream.

When creating a new object on the NFS server, we should not be sending
posix setacl requests unless the preceding posix_acl_create returned a
non-trivial acl. Doing so, causes Solaris servers in particular to
return an EINVAL.

Fixes: 013cdf1088d72 (nfs: use generic posix ACL infrastructure,,,)
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1132786
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs3acl.c