nfs4_acls: Remove duplicate entries when mapping from NFS4 ACL to DACL
authorChristof Schmitt <cs@samba.org>
Tue, 2 Jul 2019 22:08:11 +0000 (15:08 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 23 Jul 2019 18:27:27 +0000 (18:27 +0000)
commit9c88602128592ddad537bf70cbe3c51f0b2cebe5
tree2b95c05fcbd29ee93315381c0797c3a629005adf
parent169812943de23cf2752289c63331d786b0b063bd
nfs4_acls: Remove duplicate entries when mapping from NFS4 ACL to DACL

The previous patch added an additional entry for IDMAP_TYPE_BOTH. When
mapping back to a DACL, there should be no additional entry. Add a loop
that will check and remove entries that are exact duplicates.

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