nfs4_acls: Correctly skip chown when gid did not change
authorChristof Schmitt <cs@samba.org>
Tue, 12 Jul 2022 12:12:21 +0000 (05:12 -0700)
committerChristof Schmitt <cs@samba.org>
Wed, 13 Jul 2022 17:30:30 +0000 (17:30 +0000)
commita6ccceb97ebd43d453ae4f835927cbacde0fdcef
tree83fbc2a4c752a0067b6d3f3b63df1fbe1af3a97d
parent23e6e50c0f82b997dea4a67069f65252045514c0
nfs4_acls: Correctly skip chown when gid did not change

Commit 86f7af84 introduced a problem that a chown is always attempted,
even when the owning gid did not change. Then the ACL is set in the file
system as root. Fix the check by correctly comparing with gid, not uid.

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

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Wed Jul 13 17:30:30 UTC 2022 on sn-devel-184
source3/modules/nfs4_acls.c