]> git.ipfire.org Git - thirdparty/samba.git/commit
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)
committerKarolin Seeger <kseeger@samba.org>
Mon, 26 Aug 2019 10:23:29 +0000 (10:23 +0000)
commit548cc5183e471cb648ba7975e16f2a15ea78919e
tree78bad9217e77d6a70fcdce99fc4743f977bb888b
parentc5d4691183fc64c38462cff9b9d715e8eea2ff04
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