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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Aug 2019 08:59:26 +0000 (08:59 +0000)
commit1a9b67dbafc8f9534ca0a6e455d4f3a0f56d83a4
tree63a34ea48db77529258531d12ab4117f6608ebf8
parenta10f9e6b461cded9b8900979b0ff10531c4af16d
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>
(cherry picked from commit 9c88602128592ddad537bf70cbe3c51f0b2cebe5)
source3/modules/nfs4_acls.c