mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> CC: [email protected] CC: [email protected] Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
parent
8a1f006ad3
commit
718360c59f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue