nfs4_acls: Use correct owner information for ACL after owner change
commit37eebf44451a008948a562836096edcfff5065ca
authorChristof Schmitt <cs@samba.org>
Wed, 17 Jul 2019 22:29:06 +0000 (17 15:29 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Aug 2019 08:59:26 +0000 (23 08:59 +0000)
treee2e4604535608b404c04abdb5a2789d62879b632
parentcf26e0753829a10a98644a826dda77083206ad22
nfs4_acls: Use correct owner information for ACL after owner change

After a chown, the cached stat data is obviously no longer valid. The
code in smb_set_nt_acl_nfs4 checked the file correctly, but did only use
a local buffer for the stat data. So later checks of the stat buffer
under the fsp->fsp_name->st would still see the old information.

Fix this by removing the local stat buffer and always update the one
under fsp->fsp_name->st.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14032

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit 86f7af84f04b06ed96b30f936ace92aa0937be06)
source3/modules/nfs4_acls.c