vfs_nfs4acl_xattr: check status for NT_STATUS_ACCESS_DENIED in take ownership override
authorRalph Boehme <slow@samba.org>
Thu, 29 Nov 2018 10:17:08 +0000 (11:17 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 20:19:30 +0000 (20:19 +0000)
This was missing in commit 8b1b1cd8cc561378058b915e03996ff567355d81.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Mar 18 20:19:30 UTC 2019 on sn-devel-144

source3/modules/vfs_nfs4acl_xattr.c

index f0995810d8cac524c584cdda1c2e26f87cef22d7..de34929473f0d7f11beb9de209115d0c26283e80 100644 (file)
@@ -448,6 +448,9 @@ static NTSTATUS nfs4acl_xattr_fset_nt_acl(vfs_handle_struct *handle,
        if (NT_STATUS_IS_OK(status)) {
                return NT_STATUS_OK;
        }
+       if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) {
+               return status;
+       }
 
        /*
         * We got access denied. If we're already root, or we didn't