1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

nfs4_acls: Use correct type when checking ownerGID

uid and gid are members of the same union so this makes no difference,
but for type correctness and readability use the gid to check for
ownerGID.

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>
This commit is contained in:
Christof Schmitt 2019-06-25 15:21:06 -07:00
parent f198a0867e
commit 3b3d722ce5

View File

@ -856,7 +856,7 @@ static int smbacl4_substitute_simple(
if (!(ace->flags & SMB_ACE4_ID_SPECIAL) &&
ace->aceFlags & SMB_ACE4_IDENTIFIER_GROUP &&
ace->who.uid == ownerGID &&
ace->who.gid == ownerGID &&
!(ace->aceFlags & SMB_ACE4_INHERIT_ONLY_ACE) &&
!(ace->aceFlags & SMB_ACE4_FILE_INHERIT_ACE) &&
!(ace->aceFlags & SMB_ACE4_DIRECTORY_INHERIT_ACE)) {