nfs4_acls: Use correct owner information for ACL after owner change
authorChristof Schmitt <cs@samba.org>
Wed, 17 Jul 2019 22:29:06 +0000 (15:29 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:27 +0000 (18:27 +0000)
commit86f7af84f04b06ed96b30f936ace92aa0937be06
treefba3015ec4ee69f9aa58bddb711f2d18d677eecf
parent1a137a2f20c2f159c5feaef230a2b85bb9fb23b5
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>
source3/modules/nfs4_acls.c